File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,16 @@ func tpipeline#build_hooks()
32
32
au CursorMoved * call tpipeline#update ()
33
33
endif
34
34
35
- call tpipeline#util#set_stl_hooks ()
35
+ if empty (g: tpipeline_statusline ) && ! g: tpipeline_tabline
36
+ if g: tpipeline_clearstl
37
+ if tpipeline#util#is_lualine ()
38
+ au OptionSet statusline call tpipeline#util#clear_stl ()
39
+ else
40
+ au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | endif
41
+ endif
42
+ endif
43
+ au OptionSet statusline call tpipeline#update ()
44
+ endif
36
45
augroup END
37
46
endfunc
38
47
Original file line number Diff line number Diff line change @@ -34,16 +34,3 @@ func tpipeline#util#is_lualine()
34
34
" lualine doesn't play nice, so it needs extra workarounds
35
35
return has (' nvim' ) && ! empty (nvim_get_autocmds (#{group: " lualine" }))
36
36
endfunc
37
-
38
- func tpipeline#util#set_stl_hooks ()
39
- if empty (g: tpipeline_statusline ) && ! g: tpipeline_tabline
40
- if g: tpipeline_clearstl
41
- if tpipeline#util#is_lualine ()
42
- au OptionSet statusline call tpipeline#util#clear_stl ()
43
- else
44
- au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | endif
45
- endif
46
- endif
47
- au OptionSet statusline call tpipeline#update ()
48
- endif
49
- endfunc
You can’t perform that action at this time.
0 commit comments