mirror of
https://github.com/cap153/nvim.git
synced 2026-07-16 22:16:54 +08:00
高亮当前文件所有引用
This commit is contained in:
parent
1cb5843449
commit
8eacffaa83
3 changed files with 22 additions and 0 deletions
16
lua/pack/configs/illuminate.lua
Normal file
16
lua/pack/configs/illuminate.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
-- === 插件描述 ===
|
||||
if vim.g.vscode then return end
|
||||
|
||||
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" }
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue