update nvimtree config
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user