This commit is contained in:
2025-08-11 03:50:33 +02:00
parent fd50e6818e
commit be77967e94
10 changed files with 129 additions and 79 deletions

View File

@@ -1,17 +1,24 @@
-- Neo-tree mappings
--
local wk = require 'which-key'
local neotree_helper = require 'custom.plugins.neotree-helper'
local status_wk, wk = pcall(require, 'which-key')
if not status_wk then
return
end
local status_nth, nth = pcall(require, 'custom.plugins.neotree-helper')
if not status_nth then
return
end
wk.add {
{
mode = { 'n', 'v', 'i' },
{ '<leader>e', neotree_helper.smart_open, desc = 'File [e]xplorer', silent = true, noremap = true },
{ '<leader>e', nth.smart_open, desc = 'File [e]xplorer', silent = true, noremap = true },
},
{
mode = { 'n', 'v' },
{ '<C-e>', neotree_helper.smart_open, desc = 'File explorer', silent = true, noremap = true, hidden = true },
{ '<C-e>', nth.smart_open, desc = 'File explorer', silent = true, noremap = true, hidden = true },
},
}