mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 13:22:13 +02:00
splitted which key configuration in their respective plugin files
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user