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

Plugin crashes when nvim-treesitter.query is not available. #84

Closed AgentCosmic closed 2 years ago

AgentCosmic commented 2 years ago

Describe the bug Plug immediate throws error because nvim-treesitter.query module does not exists

To Reproduce When I open a typescript file.

local on_attach = function(client, bufnr)
    require 'illuminate'.on_attach(client)

Expected behavior Shouldn't throw error

Additional context This has never happened before until I updated the plugin to the version which imports the module.