diff --git a/changelog.md b/changelog.md index e1206d89f..09d06870b 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ * `NEW` `unnecessary-assert` diagnostic warns when asserting values that are always truthy * `NEW` locale `es-419`, thanks [Felipe Lema](https://codeberg.org/FelipeLema) * `FIX` prevent unnecessary edits by LSP formatting when content did not change +* `FIX` return no completions if completion is disabled ## 3.13.9 `2025-3-13` diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 38aa73031..6d3d7d04d 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -618,6 +618,9 @@ m.register 'textDocument/completion' { ---@async function (params) local uri = files.getRealUri(params.textDocument.uri) + if not config.get(uri, 'Lua.completion.enable') then + return + end if not workspace.isReady(uri) then return nil end