mirror of
https://github.com/cap153/nvim.git
synced 2026-01-07 03:27:49 +08:00
添加高亮单词其他引用相关插件
This commit is contained in:
parent
94f6e2b4e8
commit
03f9cefeb2
4 changed files with 58 additions and 10 deletions
19
lua/lazy/plugins/illuminate.lua
Normal file
19
lua/lazy/plugins/illuminate.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"RRethy/vim-illuminate",
|
||||
config = function()
|
||||
-- 将光标移动到下一个引用
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
"g=",
|
||||
"<cmd>lua require('illuminate').goto_next_reference(true)<cr>",
|
||||
{ noremap = true, silent = true, desc = "Go to next reference" }
|
||||
)
|
||||
-- 将光标移动到上一个引用
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
"g-",
|
||||
"<cmd>lua require('illuminate').goto_prev_reference(true)<cr>",
|
||||
{ noremap = true, silent = true, desc = "Go to previous reference" }
|
||||
)
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue