92 lines
3.1 KiB
Lua
92 lines
3.1 KiB
Lua
return {
|
|
-- {
|
|
-- "olimorris/codecompanion.nvim",
|
|
-- dependencies = {
|
|
-- "nvim-lua/plenary.nvim",
|
|
-- "nvim-treesitter/nvim-treesitter",
|
|
-- },
|
|
-- config = true,
|
|
-- },
|
|
{
|
|
"milanglacier/minuet-ai.nvim",
|
|
opts = {
|
|
lsp = {
|
|
-- enabled_ft = { 'toml', 'lua', 'cpp' },
|
|
-- Enables automatic completion triggering using `vim.lsp.completion.enable`
|
|
-- enabled_auto_trigger_ft = { 'ex', 'lua' },
|
|
},
|
|
-- virtualtext = {
|
|
-- -- auto_trigger_ft = {},
|
|
-- -- keymap = {
|
|
-- -- -- accept whole completion
|
|
-- -- accept = "<A-A>",
|
|
-- -- -- accept one line
|
|
-- -- accept_line = "<A-a>",
|
|
-- -- -- accept n lines (prompts for number)
|
|
-- -- -- e.g. "A-z 2 CR" will accept 2 lines
|
|
-- -- accept_n_lines = "<A-z>",
|
|
-- -- -- Cycle to prev completion item, or manually invoke completion
|
|
-- -- prev = "<A-[>",
|
|
-- -- -- Cycle to next completion item, or manually invoke completion
|
|
-- -- next = "<A-]>",
|
|
-- -- dismiss = "<A-e>",
|
|
-- -- },
|
|
-- },
|
|
provider = "openai_compatible",
|
|
request_timeout = 2.5,
|
|
throttle = 1500, -- Increase to reduce costs and avoid rate limits
|
|
debounce = 600, -- Increase to reduce costs and avoid rate limits
|
|
provider_options = {
|
|
openai_compatible = {
|
|
api_key = "OPENAI_API_KEY",
|
|
end_point = "https://api.githubcopilot.com/chat/completions",
|
|
model = "gpt-4o",
|
|
name = "Copilot",
|
|
optional = {
|
|
max_tokens = 256,
|
|
top_p = 0.9,
|
|
provider = {
|
|
-- Prioritize throughput for faster completion
|
|
sort = "throughput",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
-- {
|
|
-- "Saghen/blink.cmp",
|
|
-- config = function(_, opts)
|
|
-- local additions = {
|
|
-- keymap = {
|
|
-- -- Manually invoke minuet completion.
|
|
-- ["<A-k>"] = require("minuet").make_blink_map(),
|
|
-- },
|
|
-- sources = {
|
|
-- -- Enable minuet for autocomplete
|
|
-- default = { "lsp", "path", "buffer", "snippets", "minuet" },
|
|
-- -- For manual completion only, remove 'minuet' from default
|
|
-- providers = {
|
|
-- minuet = {
|
|
-- name = "minuet",
|
|
-- module = "minuet.blink",
|
|
-- score_offset = 8, -- Gives minuet higher priority among suggestions
|
|
-- },
|
|
-- },
|
|
-- },
|
|
-- -- Recommended to avoid unnecessary request
|
|
-- completion = { trigger = { prefetch_on_insert = false } },
|
|
-- }
|
|
-- -- TODO merge with users config
|
|
-- local merged_with_opts = vim.tbl_deep_extend(opts, additions)
|
|
-- require("blink-cmp").setup(merged_with_opts)
|
|
-- end,
|
|
-- },
|
|
{
|
|
"Davidyz/VectorCode",
|
|
version = "*", -- optional, depending on whether you're on nightly or release
|
|
build = "pipx upgrade vectorcode", -- optional but recommended if you set `version = "*"`
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
},
|
|
}
|