Neovim 101 — Contextual Semantic Highlighting

Context-aware semantic highlighting using LSP and Tree-sitter.

alpha2phi

--

Neovim 101 — Contextual Semantic Highlighting

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.

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.