RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.14k stars 47 forks source link

Attempt to index a nil value #83

Closed jemag closed 2 years ago

jemag commented 2 years ago

Describe the bug Latest commits trigger "attempt to index a nil value"

To Reproduce

  1. Put cursor on word
  2. Notice following error: image

Expected behavior No error and illuminates words

Additional context Works fine if I specify the commit before the latest updates like so :

 use {
      'RRethy/vim-illuminate',
      config = function() require 'plugin-configs/vim-illuminate' end,
      commit = '8fe150bd775f659da7e40ea2d3ad7473e6d29494'
    }
RRethy commented 2 years ago

What's the output from nvim -v and :echo has('nvim-0.5.1')?

jemag commented 2 years ago

nvim -v: NVIM v0.6.0-dev+189-g274a3504a

echo has('nvim-0.5.1'): 1

RRethy commented 2 years ago

You'll have to update Neovim to a more recent version of master.