mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
Just to remember: that line has to go inside the AirlineInit() function, otherwise it could mess up with the theme.
parent
c8d73dfc4a
commit
99510be9d3
@ -74,7 +74,10 @@ To prevent vim-airline from loading your extension when your plugin is not loade
|
|||||||
## Integration with [vim-obsession](https://github.com/tpope/vim-obsession)
|
## Integration with [vim-obsession](https://github.com/tpope/vim-obsession)
|
||||||
Prepend a '$' when obsession is enabled ([origin](https://github.com/vim-airline/vim-airline/issues/777#issuecomment-113704356))
|
Prepend a '$' when obsession is enabled ([origin](https://github.com/vim-airline/vim-airline/issues/777#issuecomment-113704356))
|
||||||
```viml
|
```viml
|
||||||
let g:airline_section_z = airline#section#create(['%{ObsessionStatus(''$'', '''')}', 'windowswap', '%3p%% ', 'linenr', ':%3v '])
|
function! AirlineInit()
|
||||||
|
let g:airline_section_z = airline#section#create(['%{ObsessionStatus(''$'', '''')}', 'windowswap', '%3p%% ', 'linenr', ':%3v '])
|
||||||
|
endfunction
|
||||||
|
autocmd User AirlineAfterInit call AirlineInit()
|
||||||
```
|
```
|
||||||
|
|
||||||
## Overriding the inactive statusline
|
## Overriding the inactive statusline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user