Skip to content

Commit bde36fc

Browse files
committed
Fix error when detecting lualine
1 parent 779180e commit bde36fc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

autoload/tpipeline/lualine.vim

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
func tpipeline#lualine#is_lualine()
22
" lualine doesn't play nice, so it needs extra workarounds
3-
return has('nvim') && !empty(nvim_get_autocmds(#{group: "lualine"}))
3+
if !has('nvim')
4+
return 0
5+
endif
6+
7+
try
8+
let res = !empty(nvim_get_autocmds(#{group: "lualine"}))
9+
catch
10+
let res = 0
11+
endtry
12+
13+
return res
414
endfunc
515

616
func tpipeline#lualine#clear_all_stl()

0 commit comments

Comments
 (0)