addded link visitor plugin

This commit is contained in:
aminnairi
2023-07-26 23:47:11 +02:00
parent 7be37c3408
commit aa74aff160
+38
View File
@@ -5,6 +5,7 @@ vim.o.number = true
vim.o.relativenumber = true
vim.o.expandtab = true
vim.o.smarttab = true
vim.o.clipboard = "unnamedplus"
vim.g.mapleader = " "
vim.g.maplocalleader = " "
@@ -760,6 +761,16 @@ require("lazy").setup({
Hint = "#10B981",
},
},
{
"xiyaowong/link-visitor.nvim",
event = "BufEnter",
opts = {
open_cmd = nil,
silent = true, -- disable all prints, `false` by defaults skip_confirmation
skip_confirmation = true, -- Skip the confirmation step, default: false
border = "rounded", -- none, single, double, rounded, solid, shadow see `:h nvim_open_win()`
},
},
{
"folke/which-key.nvim",
event = "VeryLazy",
@@ -864,6 +875,33 @@ require("lazy").setup({
},
},
},
["<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,
},