update nvimtree config

This commit is contained in:
2023-01-30 17:39:24 +08:00
parent 268e8018e4
commit 2856be357c
+13 -4
View File
@@ -1,10 +1,12 @@
local nvimtree = require("nvim-tree")
nvimtree.setup({
open_on_setup = true,
open_on_setup_file = true,
open_on_tab = true,
ignore_ft_on_setup = { 'alpha', 'dashboard' },
-- open_on_tab = true,
tab = {
sync = {
open = true,
}
},
diagnostics = {
enable = true,
show_on_dirs = false,
@@ -16,3 +18,10 @@ nvimtree.setup({
group_empty = true,
}
})
local function open_nvim_tree()
-- open the tree
require("nvim-tree.api").tree.open()
end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })