NeoVim Plugin - NeoTree
Installing NeoTree
-- NeoTree Plugin
{
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- optional, for file icons
'MunifTanjim/nui.nvim',
},
},
Load up NeoVim again and it will install NeoTree which can be ran with :NeoTree
NeoTree Shortcut
I replaced the current <leader><leader> or <space><space> key with this NeoTree Plugin
To do that find this line in the init.lua file:
vim.keymap.set('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
Then change to this:
vim.keymap.set('n', '<leader><leader>', ':Neotree toggle<CR>', { desc = '[ ] Toggle NeoTree' })
This will allow you to quickly open up Neotree by hitting the Spacebar twice.
Using NeoTree
- <C-w><w> - Switches between Tree and current buffer