Skip to content

Commit b461466

Browse files
committed
fix(lsp): correctly disable autotrigger.
1 parent c6ca9f4 commit b461466

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Note: Users might call `vim.lsp.completion.enable {autotrigger = true}` during
251251
the `LspAttach` event when the client supports completion. However, this is not
252252
the desired behavior for Minuet. As an LLM completion source, Minuet can face
253253
significant rate limits during automatic triggering. Consequently, Minuet
254-
disables completion by default unless the user enables it in
254+
disables auto trigger by default unless the user enables it in
255255
`config.lsp.enabled_auto_trigger_ft`.
256256

257257
</details>

lua/minuet/lsp.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function M.start_server(args)
240240
-- substantial rate limits during auto-triggering.
241241
-- Therefore, completion is disabled by default unless
242242
-- explicitly enabled by the user.
243-
vim.lsp.completion.enable(false, client.id, bufnr)
243+
vim.lsp.completion.enable(true, client.id, bufnr, { autotrigger = false })
244244
utils.notify('Minuet LSP is disabled for auto triggering', 'verbose', vim.log.levels.INFO)
245245
end, 200)
246246
end

0 commit comments

Comments
 (0)