winbar only with nvim ^>= 0.8

This commit is contained in:
2022-09-09 20:51:18 +02:00
parent e72eaa724e
commit c19072c4cd

View File

@@ -61,6 +61,7 @@ opt.foldlevel = 20
opt.foldmethod = 'expr'
opt.foldexpr = 'nvim_treesitter#foldexpr()'
if vim.version().minor >= 8 then
local function status_line()
local file_name = "%-.32t"
local modified = " %-m"
@@ -79,3 +80,4 @@ local function status_line()
end
opt.winbar = status_line()
end