feat(ai): better completion/suggestions of AI engines

This commit is contained in:
Folke Lemaitre 2024-11-10 13:35:42 +01:00
parent 86904d2fb1
commit b2e012cb83
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 110 additions and 37 deletions

View file

@ -11,6 +11,20 @@ vim.g.autoformat = true
-- enabled with `:LazyExtras`
vim.g.lazyvim_picker = "auto"
-- if the completion engine supports the AI source,
-- use that instead of inline suggestions
vim.g.ai_cmp = true
-- if `vim.g.ai_cmp` is false, or the completion engine does
-- not support the AI source, use inline suggestions
-- with the keymaps below
vim.g.ai_suggest_accept = "<tab>"
vim.g.ai_suggest_accept_word = false
vim.g.ai_suggest_accept_line = false
vim.g.ai_suggest_next = "<M-]>"
vim.g.ai_suggest_prev = "<M-[>"
vim.g.ai_suggest_clear = "<C-]>"
-- LazyVim root dir detection
-- Each entry can be:
-- * the name of a detector function like `lsp` or `cwd`