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

31 lines
876 B
Lua

return {
{ -- Neo-tree is a Neovim plugin to browse the file system
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
cmd = 'Neotree',
keys = {
{ '\\', '<Cmd>Neotree action=focus source=filesystem position=left reveal_force_cwd=false<CR>', desc = 'NeoTree left-side', silent = true },
{ '|', '<Cmd>Neotree action=focus source=filesystem position=float reveal_force_cwd=false<CR>', desc = 'NeoTree float', silent = true },
},
opts = {
enable_git_status = true,
filesystem = {
use_libuv_file_watcher = true,
window = {
mappings = {
['\\'] = 'close_window',
['|'] = 'close_window',
},
},
},
},
},
}
-- vim: ts=2 sts=2 sw=2 et