1 Commits
Author SHA1 Message Date
lazar df2b218107 fix: remove semanticTokensProvider capability to prevent line out of range errors
The semantic tokens delta calculation had a bug where previous delta lines
were used instead of absolute lines, causing cumulative errors that led
to 'Invalid line: out of range' in Neovim's semantic token renderer.

Since semantic tokens were already disabled (full=false, range=false) but
Neovim still attempted to process them, remove the capability entirely
so Neovim doesn't set up the semantic token decoration provider at all.
2026-07-18 17:01:44 +02:00
-5
View File
@@ -67,11 +67,6 @@ local capabilities = {
documentSymbolProvider = true,
diagnosticProvider = { relatedDocuments = {} },
textDocumentSync = 1,
semanticTokensProvider = {
full = false, -- Disabled: was causing "Invalid line: out of range" errors
legend = { tokenTypes = semanticTokenTypes, tokenModifiers = semanticTokenModifiers },
range = false,
},
inlayHintProvider = { resolveProvider = false },
workspaceSymbolProvider = true,
documentFormattingProvider = true,