Skip to content

Commit cbcea5a

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ Therefore, consider the following options:
247247

248248
**Additional Note:**
249249

250-
Note: Users might call `vim.lsp.completion.enable {autotrigger = true}` during
251-
the `LspAttach` event when the client supports completion. However, this is not
252-
the desired behavior for Minuet. As an LLM completion source, Minuet can face
250+
Users might call `vim.lsp.completion.enable {autotrigger = true}` during the
251+
`LspAttach` event when the client supports completion. However, this is not the
252+
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)