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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user