Just to remember: that line has to go inside the AirlineInit() function, otherwise it could mess up with the theme.

André Sbrocco Figueiredo 2020-05-12 15:45:25 -03:00
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)
Prepend a '$' when obsession is enabled ([origin](https://github.com/vim-airline/vim-airline/issues/777#issuecomment-113704356))
```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