Neovim 101 — Contextual Semantic Highlighting
Context-aware semantic highlighting using LSP and Tree-sitter.
We configured semantic highlighting using Tree-sitter and LSP in a previous article. As semantic tokens support is now part of Neovim, we will use the LSP semantic tokens if it is supported, and fall back to Tree-sitter if the capability is unavailable.