File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ func tpipeline#build_hooks()
34
34
35
35
if empty (g: tpipeline_statusline ) && ! g: tpipeline_tabline
36
36
if g: tpipeline_clearstl
37
- if tpipeline#util #is_lualine ()
38
- au OptionSet statusline if v: option_type == ' local' | call tpipeline#util #clear_all_stl () | endif
39
- au ModeChanged * call tpipeline#util #clear_all_stl ()
37
+ if tpipeline#lualine #is_lualine ()
38
+ au OptionSet statusline if v: option_type == ' local' | call tpipeline#lualine #clear_all_stl () | endif
39
+ au ModeChanged * call tpipeline#lualine #clear_all_stl ()
40
40
endif
41
41
au OptionSet statusline if v: option_type == ' global' | call tpipeline#util#clear_stl () | endif
42
42
endif
Original file line number Diff line number Diff line change
1
+ func tpipeline#lualine#is_lualine ()
2
+ " lualine doesn't play nice, so it needs extra workarounds
3
+ return has (' nvim' ) && ! empty (nvim_get_autocmds (#{group: " lualine" }))
4
+ endfunc
5
+
6
+ func tpipeline#lualine#clear_all_stl ()
7
+ for i in range (1 , tabpagewinnr (tabpagenr (), ' $' ))
8
+ call win_execute (win_getid (i ), ' setlocal stl<' )
9
+ endfor
10
+ endfunc
Original file line number Diff line number Diff line change @@ -29,14 +29,3 @@ func tpipeline#util#clear_stl()
29
29
let g: tpipeline_statusline = &stl
30
30
set stl = % #StatusLine #
31
31
endfunc
32
-
33
- func tpipeline#util#is_lualine ()
34
- " lualine doesn't play nice, so it needs extra workarounds
35
- return has (' nvim' ) && ! empty (nvim_get_autocmds (#{group: " lualine" }))
36
- endfunc
37
-
38
- func tpipeline#util#clear_all_stl ()
39
- for i in range (1 , tabpagewinnr (tabpagenr (), ' $' ))
40
- call win_execute (win_getid (i ), ' setlocal stl<' )
41
- endfor
42
- endfunc
You can’t perform that action at this time.
0 commit comments