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.23k stars 53 forks source link

Flashing for lua_ls highlights #195

Closed Twotyth closed 8 months ago

Twotyth commented 8 months ago

Description Highlight flashes in normal mode (insert is fine) when using lua_ls as source; does not happen with other languages servers, checked on csharp_ls and clangd; If reference highlight resolved by vim.lsp.buf.document_highlight - it flashes in normal mode for lua_ls too, while others are fine.

Reproduction

  1. Enter .lua file with lsp configured and it being a source for illuminate
  2. Bug happens

Output from :IlluminateDebug image

Expected behavior Consistent highlighting

Example if needed, I can capture a video of flashing but i doubt that'll be needed

RRethy commented 8 months ago

Can you capture a video. I use lua ls and I don't see flashing.

RRethy commented 8 months ago

Can you also create a minimal init.lua that only startups vim-illuminate to rule out other plugins/config being an issue.

RRethy commented 8 months ago

Closing, can reopen when there is a minimal init.lua.

From the bug report template:

**Note** Omitting a minimal `init.vim`/`init.lua`/`.vimrc` will likely result in the issue being closed without explanation.