fix(nvim-tree): clear hl after loading plugin
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user