aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/vim-illuminate.lua
blob: 9ed467e3e42f830850fdc4f435194a59675acb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
  }