diff --git a/roles/neovim/files/init.lua b/roles/neovim/files/init.lua index 4a08203..c00857f 100644 --- a/roles/neovim/files/init.lua +++ b/roles/neovim/files/init.lua @@ -4,6 +4,7 @@ require('remaps') require('options') require('plugins') require('colors') +require('plugin_options') require('autocommands') -- vim.cmd([[ diff --git a/roles/neovim/files/lua/plugin_options.lua b/roles/neovim/files/lua/plugin_options.lua new file mode 100644 index 0000000..79ce338 --- /dev/null +++ b/roles/neovim/files/lua/plugin_options.lua @@ -0,0 +1,4 @@ +-- NERDTree + +let NERDTreeIgnore=['^__pycache__$', '\.pyc', '\~$'] +vim.keymap.set('n', 'ne', 'NERDTree', { remap = true }) diff --git a/roles/neovim/files/lua/plugins.lua b/roles/neovim/files/lua/plugins.lua index b88be4e..4b1fb01 100644 --- a/roles/neovim/files/lua/plugins.lua +++ b/roles/neovim/files/lua/plugins.lua @@ -13,6 +13,10 @@ return require('packer').startup(function(use) use 'morhetz/gruvbox' use 'sjl/badwolf' + -- NERDTree + use 'preservim/nerdtree' + use 'Xuyuanp/nerdtree-git-plugin' -- A NERDTree plugin showing git status + -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if packer_bootstrap then