simplified tree auto opening mechanism

This commit is contained in:
Nydragon 2023-02-12 20:34:04 +01:00
parent 4804c7113e
commit 924df96e8d
2 changed files with 6 additions and 5 deletions

Binary file not shown.

View file

@ -2,11 +2,12 @@ vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
require("nvim-tree").setup()
require'nvim-tree'.toggle(false,true)
local function open_nvim_tree()
--local function open_nvim_tree()
-- open the tree
require("nvim-tree.api").tree.open()
end
---- open the tree
--require("nvim-tree.api").tree.open()
--end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
--vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })