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
@@ -7,4 +7,37 @@ return {
skip_confirmation = true,
border = "rounded",
},
config = function()
local whichKey = require("which-key")
whichKey.register({
["<leader>v"] = {
name = "Visit link",
v = {
function()
require("link-visitor").visit()
end,
"Visit",
},
l = {
function()
require("link-visitor").link_under_cursor()
end,
"Under cursor",
},
n = {
function()
require("link-visitor").link_near_cursor()
end,
"Near cursor",
},
N = {
function()
require("link-visitor").link_nearest()
end,
"Near cursor",
},
},
})
end
}