mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-12 10:24:37 +02:00
feat(ai): better completion/suggestions of AI engines
This commit is contained in:
parent
86904d2fb1
commit
b2e012cb83
6 changed files with 110 additions and 37 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue