Skip to content

Commit 34a38d9

Browse files
committed
Reset laststatus for lualine
The bullshittery of workarounds we need just for lualine continues... Of course lualine has hardcoded setting laststatus to some value with their fucking useless globalstatus option [0]. Let's reset it after VimEnter again, just because lualine is a special snowflake. Top investigators around the world are still trying to find out why anyone with a sane mind would use lualine's globalstatus option (that sets laststatus=3 for them) instead of just directly setting laststatus=3. Fixes #53 [0] https://github.com/nvim-lualine/lualine.nvim/blob/84ffb80e452d95e2c46fa29a98ea11a240f7843e/lua/lualine.lua#L521
1 parent 33434a2 commit 34a38d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/tpipeline.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func tpipeline#build_hooks()
3636
if tpipeline#lualine#is_lualine()
3737
au OptionSet statusline call tpipeline#lualine#delay_eval()
3838
au ModeChanged * call tpipeline#lualine#fix_stl()
39+
set laststatus=0
3940
elseif g:tpipeline_clearstl
4041
au OptionSet statusline if v:option_type == 'global' | call tpipeline#util#clear_stl() | endif
4142
endif

0 commit comments

Comments
 (0)