gemini and openai with api keys. Additionally add code companion. Finally, add VectorCode with Code Companion which caches and gives context of private local projects to AI for better insight. completion in blink.
33 lines
1.2 KiB
Lua
33 lines
1.2 KiB
Lua
return {
|
|
"saghen/blink.cmp",
|
|
version = "1.1.1",
|
|
---@module 'blink.cmp'
|
|
---@type blink.cmp.Config
|
|
opts = {
|
|
keymap = { preset = "super-tab" },
|
|
|
|
appearance = {
|
|
nerd_font_variant = "mono"
|
|
},
|
|
|
|
-- (Default) Only show the documentation popup when manually triggered
|
|
completion = { documentation = { auto_show = false } },
|
|
|
|
-- Default list of enabled providers defined so that you can extend it
|
|
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
|
sources = {
|
|
default = { "lsp", "path", "snippets", "buffer", },
|
|
per_filetype = {
|
|
codecompanion = { "codecompanion", },
|
|
},
|
|
},
|
|
|
|
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
|
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
|
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
|
--
|
|
-- See the fuzzy documentation for more information
|
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
|
},
|
|
opts_extend = { "sources.default" }
|
|
}
|