Configure minuet-ai.nvim with the OpenCode Go chat completions endpoint (deepseek-v4-flash, thinking disabled) and wire it into blink.cmp as a completion source with manual <A-y> trigger.
38 lines
926 B
Lua
38 lines
926 B
Lua
vim.pack.add({
|
|
{ src = "https://github.com/saghen/blink.cmp", version = vim.version.range("^1") },
|
|
})
|
|
|
|
require("blink.cmp").setup({
|
|
keymap = { preset = "super-tab" },
|
|
appearance = {
|
|
nerd_font_variant = "mono",
|
|
use_nvim_cmp_as_default = true,
|
|
},
|
|
completion = {
|
|
documentation = { auto_show = false },
|
|
trigger = { prefetch_on_insert = false },
|
|
},
|
|
sources = {
|
|
default = { "lsp", "path", "snippets", "minuet", "buffer" },
|
|
providers = {
|
|
minuet = {
|
|
name = "minuet",
|
|
module = "minuet.blink",
|
|
async = true,
|
|
timeout_ms = 3000,
|
|
score_offset = 50,
|
|
},
|
|
},
|
|
},
|
|
fuzzy = { implementation = "prefer_rust_with_warning" },
|
|
})
|
|
|
|
local function minuet_blink_map()
|
|
local ok, map = pcall(require("minuet").make_blink_map)
|
|
if ok then
|
|
return map()[1]
|
|
end
|
|
end
|
|
|
|
vim.keymap.set("i", "<A-y>", minuet_blink_map, { desc = "Minuet manual completion" })
|