mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 18:02:13 +02:00
addded link visitor plugin
This commit is contained in:
@@ -5,6 +5,7 @@ vim.o.number = true
|
|||||||
vim.o.relativenumber = true
|
vim.o.relativenumber = true
|
||||||
vim.o.expandtab = true
|
vim.o.expandtab = true
|
||||||
vim.o.smarttab = true
|
vim.o.smarttab = true
|
||||||
|
vim.o.clipboard = "unnamedplus"
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
@@ -760,6 +761,16 @@ require("lazy").setup({
|
|||||||
Hint = "#10B981",
|
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",
|
"folke/which-key.nvim",
|
||||||
event = "VeryLazy",
|
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,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user