chore(nvim): disable nvimtree auto in gitcommit
parent
0069ca4c79
commit
c850bf977e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue