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

36 lines
899 B
Lua

-- 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 = {
{ '<leader>e', ':Neotree reveal<CR>', desc = 'File [E]xplorer', silent = true },
},
opts = {
open_files_do_not_replace_types = { 'terminal', 'trouble', 'qf', 'neo-tree' },
filesystem = {
hijack_netrw_behavior = 'disabled',
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
},
follow_current_file = {
enabled = true,
},
window = {
mappings = {
['<leader>e'] = 'close_window',
},
},
},
},
}