diff options
Diffstat (limited to 'lua/plugins/vim-illuminate.lua')
| -rw-r--r-- | lua/plugins/vim-illuminate.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/plugins/vim-illuminate.lua b/lua/plugins/vim-illuminate.lua new file mode 100644 index 0000000..9ed467e --- /dev/null +++ b/lua/plugins/vim-illuminate.lua @@ -0,0 +1,21 @@ +return + { + 'RRethy/vim-illuminate', + event = 'LspAttach', + keys = { + { + desc = 'Next Reference', + ']r', + function() require('illuminate').goto_next_reference() end, + }, + { + desc = 'Previous Reference', + '[r', + function() require('illuminate').goto_prev_reference() end, + }, + }, + opts = { + providers = { 'lsp' }, + }, + config = function(_, opts) require('illuminate').configure(opts) end, + } |