nvim tree is now automatically opening

This commit is contained in:
Nydragon 2023-02-12 19:40:49 +01:00
parent d450ac66aa
commit 4804c7113e
3 changed files with 12 additions and 3 deletions

Binary file not shown.

View file

@ -1 +1,12 @@
vim.g.nvim_tree_auto_open = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
require("nvim-tree").setup()
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 })

View file

@ -49,8 +49,6 @@ return require('packer').startup(function(use)
-- setup section -- setup section
require('nvim-tree').setup()
require('nightfox-config') require('nightfox-config')
require('nvim-tree-config') require('nvim-tree-config')