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.16k stars 47 forks source link

Use treesitter or lsp for smarter highlighting #53

Closed RRethy closed 3 years ago

RRethy commented 3 years ago

I think builtin treesitter and lsp for Neovim will be able to replace this plugin and make it smarter in terms of what it highlights. Will investigate this.

RRethy commented 3 years ago

Uses documentHighlight from LSP server.

71ca663 Fix lua config snippet so it can be c/p 2cbbd57 Add lsp info to README 319d286 Update docs with lsp usage c74e559 Disable normal vim-illuminate functionality if using lsp 14965fe Remove some old TODOs 0221eca Don't clear autocmds for other buffers when a new buffer is attached 50fe54d Fix logic around keeping old highlights if they're still valid 3668446 Don't flash cursor when moving around with lsp highlighting 2182544 Stop timers that aren't needed since new timers have been started a9956d7 Add POC for smart lsp based highlighting 505de71 Remove experimental lsp documentHighlight in favour of adding it to nvim-lspconfig 24c43ff Override documentHighlight handler and print the highlights adad26b Begin work on utilizing nvim lsp