chore(nvim): remove minuet-ai plugin
This commit is contained in:
@@ -2,6 +2,9 @@ vim.pack.add({
|
||||
{ src = "https://github.com/saghen/blink.cmp", version = vim.version.range("^1") },
|
||||
})
|
||||
|
||||
local default_sources = { "lsp", "path", "snippets", "buffer" }
|
||||
local providers = {}
|
||||
|
||||
require("blink.cmp").setup({
|
||||
keymap = { preset = "super-tab" },
|
||||
appearance = {
|
||||
@@ -13,25 +16,9 @@ require("blink.cmp").setup({
|
||||
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,
|
||||
},
|
||||
},
|
||||
default = default_sources,
|
||||
providers = providers,
|
||||
},
|
||||
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" })
|
||||
|
||||
@@ -17,7 +17,6 @@ vim.api.nvim_create_autocmd("PackChanged", {
|
||||
require("plugins.theme")
|
||||
require("plugins.mini-icons")
|
||||
require("plugins.treesitter")
|
||||
require("plugins.minuet")
|
||||
require("plugins.blink")
|
||||
require("plugins.whichkey")
|
||||
require("plugins.lualine")
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
vim.pack.add({
|
||||
{ src = "https://github.com/milanglacier/minuet-ai.nvim" },
|
||||
})
|
||||
|
||||
local function setup_minuet()
|
||||
pcall(require("minuet").setup, {
|
||||
provider = "openai_fim_compatible",
|
||||
n_completions = 1,
|
||||
context_window = 2048,
|
||||
request_timeout = 2.5,
|
||||
throttle = 600,
|
||||
debounce = 250,
|
||||
provider_options = {
|
||||
openai_fim_compatible = {
|
||||
api_key = "TERM",
|
||||
name = "Llama.cpp",
|
||||
end_point = "http://localhost:8012/v1/completions",
|
||||
model = "PLACEHOLDER",
|
||||
optional = {
|
||||
max_tokens = 56,
|
||||
top_p = 0.9,
|
||||
},
|
||||
template = {
|
||||
prompt = function(context_before_cursor, context_after_cursor, _)
|
||||
return "<|fim_prefix|>"
|
||||
.. context_before_cursor
|
||||
.. "<|fim_suffix|>"
|
||||
.. context_after_cursor
|
||||
.. "<|fim_middle|>"
|
||||
end,
|
||||
suffix = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
setup_minuet()
|
||||
|
||||
vim.api.nvim_create_autocmd("PackChanged", {
|
||||
callback = function(ev)
|
||||
if ev.data.spec.name == "minuet-ai.nvim" then
|
||||
setup_minuet()
|
||||
end
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user