use global statusline only on neovim 0.7
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user