diff --git a/roles/neovim/files/lua/plugins.lua b/roles/neovim/files/lua/plugins.lua index feb9433..b70c142 100644 --- a/roles/neovim/files/lua/plugins.lua +++ b/roles/neovim/files/lua/plugins.lua @@ -19,4 +19,15 @@ return require('packer').startup(function() -- Git commands from vim use 'tpope/vim-fugitive' + + -- File browser + use { + "nvim-neo-tree/neo-tree.nvim", + branch = "v2.x", + requires = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim", + } + } end) diff --git a/roles/neovim/files/plugin/neotree.lua b/roles/neovim/files/plugin/neotree.lua new file mode 100644 index 0000000..c441f69 --- /dev/null +++ b/roles/neovim/files/plugin/neotree.lua @@ -0,0 +1 @@ +vim.api.nvim_set_keymap('n', '', ':NeoTreeRevealToggle', { noremap = true })