up
This commit is contained in:
@@ -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 },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user