use global statusline only on neovim 0.7
This commit is contained in:
@@ -44,12 +44,17 @@ local tabstop = {
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local globalstatus = false
|
||||||
|
if vim.fn.has("nvim-0.7") == 1 then
|
||||||
|
globalstatus = true
|
||||||
|
end
|
||||||
|
|
||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
disabled_filetypes = { "NvimTree" },
|
disabled_filetypes = { "NvimTree" },
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
globalstatus = true,
|
globalstatus = globalstatus,
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ opt.showcmd = false
|
|||||||
opt.guicursor = "a:block,i:ver25"
|
opt.guicursor = "a:block,i:ver25"
|
||||||
opt.fileformat = "unix"
|
opt.fileformat = "unix"
|
||||||
opt.fileformats = { "unix", "dos", "mac" }
|
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
|
-- if vim.fn.has("win32") == 1 then
|
||||||
-- opt.shell = "powershell.exe"
|
-- opt.shell = "powershell.exe"
|
||||||
|
|||||||
Reference in New Issue
Block a user