show status line on NvimTree in nvim-0.7

This commit is contained in:
2022-03-21 21:13:56 +03:00
parent c5bdaf0365
commit 5f5a53805f

View File

@@ -45,13 +45,15 @@ local tabstop = {
} }
local globalstatus = false local globalstatus = false
local disabledfts = { "NvimTree" }
if vim.fn.has("nvim-0.7") == 1 then if vim.fn.has("nvim-0.7") == 1 then
globalstatus = true globalstatus = true
disabledfts = {}
end end
lualine.setup({ lualine.setup({
options = { options = {
disabled_filetypes = { "NvimTree" }, disabled_filetypes = disabledfts,
component_separators = "", component_separators = "",
section_separators = "", section_separators = "",
globalstatus = globalstatus, globalstatus = globalstatus,