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 },

View File

@@ -33,7 +33,10 @@ opt.showcmd = false
opt.guicursor = "a:block,i:ver25"
opt.fileformat = "unix"
opt.fileformats = { "unix", "dos", "mac" }
opt.laststatus = 3
if vim.fn.has("nvim-0.7") == 1 then
opt.laststatus = 3
end
-- if vim.fn.has("win32") == 1 then
-- opt.shell = "powershell.exe"