From 618de2c3e0d6d9c81ec3a88a6a429a356e207df6 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Mon, 1 Aug 2022 21:51:37 +0200 Subject: [PATCH] Add NERDTree plugin --- roles/neovim/files/init.lua | 1 + roles/neovim/files/lua/plugin_options.lua | 4 ++++ roles/neovim/files/lua/plugins.lua | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 roles/neovim/files/lua/plugin_options.lua 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