mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 05:38:38 +02:00
Lastest changes
This commit is contained in:
parent
8693bde880
commit
2870f89f1e
6 changed files with 11 additions and 22 deletions
20
lua/custom/plugins/filetree.lua
Normal file
20
lua/custom/plugins/filetree.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function ()
|
||||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
|
||||
require('neo-tree').setup {
|
||||
close_if_last_window = true,
|
||||
}
|
||||
|
||||
vim.keymap.set('n', '<leader>nf', ':NeoTreeFloatToggle<CR>', { desc = '[N]eoTree [F]loat Toggle' })
|
||||
vim.keymap.set('n', '<leader>nr', ':NeoTreeRevealToggle<CR>', { desc = '[N]eoTree [R]eveal Toggle' })
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue