winbar only with nvim ^>= 0.8
This commit is contained in:
@@ -61,6 +61,7 @@ opt.foldlevel = 20
|
|||||||
opt.foldmethod = 'expr'
|
opt.foldmethod = 'expr'
|
||||||
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
|
||||||
|
if vim.version().minor >= 8 then
|
||||||
local function status_line()
|
local function status_line()
|
||||||
local file_name = "%-.32t"
|
local file_name = "%-.32t"
|
||||||
local modified = " %-m"
|
local modified = " %-m"
|
||||||
@@ -79,3 +80,4 @@ local function status_line()
|
|||||||
end
|
end
|
||||||
|
|
||||||
opt.winbar = status_line()
|
opt.winbar = status_line()
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user