nvim-lua.kickstart.nvim/lua/kickstart/plugins/neo-tree.lua

34 lines
856 B
Lua
Raw Normal View History

-- Neo-tree is a Neovim plugin to browse the file system
-- https://github.com/nvim-neo-tree/neo-tree.nvim
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',
},
cmd = 'Neotree',
keys = {
2025-05-19 09:25:20 -03:00
{ '\\', ':Neotree reveal position=float<CR>', desc = 'NeoTree reveal in float mode', silent = true },
2025-04-04 20:51:30 -03:00
{ '<leader>nds', ':Neotree document_symbols position=float<CR>', desc = 'NeoTree document symbols', silent = true },
},
opts = {
2025-04-04 20:51:30 -03:00
sources = {
'filesystem',
'document_symbols',
},
filesystem = {
window = {
mappings = {
['\\'] = 'close_window',
},
},
2025-04-18 20:07:28 -03:00
follow_current_file = {
enabled = true,
},
},
},
}