From df2b218107809c1f6c50e94c5ecb1f74ff7f4035 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Sat, 18 Jul 2026 17:01:44 +0200 Subject: [PATCH] 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. --- src/main.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.lua b/src/main.lua index a025492..fd0c0cf 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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,