diff --git a/lua/plugins/minuet.lua b/lua/plugins/minuet.lua index 3f10a8c..5bbe432 100644 --- a/lua/plugins/minuet.lua +++ b/lua/plugins/minuet.lua @@ -1,12 +1,11 @@ -- AI code completion --- A return { 'milanglacier/minuet-ai.nvim', dependencies = { 'nvim-lua/plenary.nvim' }, config = function() require('minuet').setup { virtualtext = { - auto_trigger_ft = { 'lua' }, + auto_trigger_ft = { '*' }, keymap = { accept = '', accept_line = '', @@ -22,8 +21,9 @@ return { }, provider = 'openai_compatible', request_timeout = 3, - throttle = 1500, -- Increase to reduce costs and avoid rate limits - debounce = 600, -- Increase to reduce costs and avoid rate limits + throttle = 500, -- Increase to reduce costs and avoid rate limits + debounce = 300, -- Increase to reduce costs and avoid rate limits + n_completions = 1, provider_options = { openai_compatible = { api_key = 'COMPLETION_OPENAI_API_KEY', @@ -31,7 +31,7 @@ return { model = vim.env.COMPLETION_MODEL, name = 'Openrouter', optional = { - max_tokens = 2000, + max_tokens = 300, top_p = 0.9, provider = { -- Prioritize throughput for faster completion