chore: neo tree mappings similar to nvim tree

This commit is contained in:
2pac 2023-11-06 22:59:23 +01:00
parent b272013853
commit bb3f8e2914
1 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,15 @@ return {
"MunifTanjim/nui.nvim",
},
config = function()
require('neo-tree').setup {}
require('neo-tree').setup {
window = {
mappings = {
["<C-t>"] = "open_tabnew",
["<C-x>"] = "open_split",
["<C-v>"] = "open_vsplit",
}
}
}
vim.keymap.set('n', '<leader>a', [[:Neotree reveal_force_cwd<cr>]])
vim.keymap.set('n', '<leader>A', [[:Neotree toggle reveal_force_cwd<cr>]])