1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
-- TODO: Consider removing neotree
-- Not really using it due to oil.nvim, but maybe it's still
-- useful to have a tree-structure file explorer?
return {
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
cmd = 'Neotree',
config = function()
require('neo-tree').setup({
open_files_do_not_replace_types = { 'terminal', 'Trouble', 'qf', 'edgy' },
window = {
mappings = {
['e'] = function()
---@diagnostic disable-next-line: deprecated
vim.api.nvim_exec('Neotree focus filesystem left', true)
end,
['b'] = function()
---@diagnostic disable-next-line: deprecated
vim.api.nvim_exec('Neotree focus buffers left', true)
end,
['g'] = function()
---@diagnostic disable-next-line: deprecated
vim.api.nvim_exec('Neotree focus git_status left', true)
end,
},
},
})
vim.keymap.set('n', '<leader>nt', '<cmd>Neotree toggle reveal left<cr>', { desc = '[N]eotree [T]oggle' })
end,
}
|