splitted which key configuration in their respective plugin files

This commit is contained in:
aminnairi
2023-12-02 23:51:23 +01:00
parent 333f80533c
commit 38cf4d903a
5 changed files with 153 additions and 143 deletions
@@ -18,5 +18,37 @@ return {
dotfiles = false,
},
})
local whichKey = require("which-key")
whichKey.register({
["<leader>n"] = {
name = "NvimTree",
t = {
function()
require("nvim-tree.api").tree.toggle()
end,
"Toggle NvimTree",
},
f = {
function()
require("nvim-tree.api").tree.focus()
end,
"Focus NvimTree",
},
e = {
function()
require("nvim-tree.api").tree.expand_all()
end,
"Expand NvimTree",
},
c = {
function()
require("nvim-tree.api").tree.collapse_all()
end,
"Collapse NvimTree",
},
},
})
end,
}