chore(nvim): disable nvimtree auto in gitcommit

main
sudo pacman -Syu 2023-09-15 23:47:42 +07:00
parent 0069ca4c79
commit c850bf977e
1 changed files with 12 additions and 0 deletions

View File

@ -289,6 +289,18 @@ require("lazy").setup({
return
end
local IGNORED_FT = {
"gitcommit",
}
-- &ft
local filetype = vim.bo[data.buf].ft
-- skip ignored filetypes
if vim.tbl_contains(IGNORED_FT, filetype) then
return
end
require("nvim-tree.api").tree.toggle({ focus = false })
end