use global statusline only on neovim 0.7

This commit is contained in:
2022-03-21 10:40:40 +03:00
parent 9ede0b9af3
commit 84a4e9c1d4
2 changed files with 10 additions and 2 deletions

View File

@@ -44,12 +44,17 @@ local tabstop = {
end,
}
local globalstatus = false
if vim.fn.has("nvim-0.7") == 1 then
globalstatus = true
end
lualine.setup({
options = {
disabled_filetypes = { "NvimTree" },
component_separators = "",
section_separators = "",
globalstatus = true,
globalstatus = globalstatus,
},
sections = {
lualine_a = { mode },