my dotfiles for arch
at main 61 lines 1.7 kB view raw
1return { 2 { 3 "milanglacier/minuet-ai.nvim", 4 priority = 1000, 5 config = function() 6 require("minuet").setup({ 7 provider = "openai_compatible", 8 request_timeout = 2.5, 9 throttle = 1500, -- Increase to reduce costs and avoid rate limits 10 debounce = 600, -- Increase to reduce costs and avoid rate limits 11 provider_options = { 12 openai_compatible = { 13 api_key = "OPENROUTER_API_KEY", 14 end_point = "https://openrouter.ai/api/v1/chat/completions", 15 model = "moonshotai/kimi-k2", 16 name = "Openrouter", 17 optional = { 18 max_tokens = 56, 19 top_p = 0.9, 20 provider = { 21 -- Prioritize throughput for faster completion 22 sort = "throughput", 23 }, 24 }, 25 }, 26 }, 27 }) 28 end, 29 }, 30 { "nvim-lua/plenary.nvim" }, 31 -- optional, if you are using virtual-text frontend, blink is not required. 32 { 33 "Saghen/blink.cmp", 34 config = function() 35 require("blink-cmp").setup({ 36 keymap = { 37 -- Manually invoke minuet completion. 38 ["<A-y>"] = require("minuet").make_blink_map(), 39 }, 40 sources = { 41 -- Enable minuet for autocomplete 42 default = { "lsp", "path", "buffer", "snippets", "minuet" }, 43 -- For manual completion only, remove 'minuet' from default 44 providers = { 45 minuet = { 46 name = "minuet", 47 module = "minuet.blink", 48 async = true, 49 -- Should match minuet.config.request_timeout * 1000, 50 -- since minuet.config.request_timeout is in seconds 51 timeout_ms = 3000, 52 score_offset = 50, -- Gives minuet higher priority among suggestions 53 }, 54 }, 55 }, 56 -- Recommended to avoid unnecessary request 57 completion = { trigger = { prefetch_on_insert = false } }, 58 }) 59 end, 60 }, 61}