fix(nvim-tree): clear hl after loading plugin

This commit is contained in:
2026-05-06 23:49:01 +02:00
parent 77025b72c0
commit 863eec6a7c
2 changed files with 10 additions and 9 deletions
+10
View File
@@ -228,6 +228,16 @@ require("nvim-tree").setup({
},
})
local function clear_hl(hl)
vim.cmd.highlight({ args = { "clear", hl } })
vim.cmd.highlight({ args = { "link", hl, "NONE" }, bang = true })
end
clear_hl("NvimTreeExecFile")
clear_hl("NvimTreeSpecialFile")
clear_hl("NvimTreeSymlink")
clear_hl("NvimTreeImageFile")
vim.api.nvim_create_autocmd("QuitPre", {
callback = function()
local tree_wins = {}