added minuet
This commit is contained in:
@@ -45,10 +45,11 @@ return {
|
||||
auto_insert = false,
|
||||
},
|
||||
},
|
||||
trigger = { prefetch_on_insert = false },
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer', 'minuet' },
|
||||
providers = {
|
||||
lsp = {
|
||||
fallbacks = {},
|
||||
@@ -64,6 +65,15 @@ return {
|
||||
score_offset = 100,
|
||||
async = true,
|
||||
},
|
||||
minuet = {
|
||||
name = 'minuet',
|
||||
module = 'minuet.blink',
|
||||
async = true,
|
||||
-- Should match minuet.config.request_timeout * 1000,
|
||||
-- since minuet.config.request_timeout is in seconds
|
||||
timeout_ms = 3000,
|
||||
score_offset = 50, -- Gives minuet higher priority among suggestions
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
34
lua/plugins/minuet-ai.lua
Normal file
34
lua/plugins/minuet-ai.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
'milanglacier/minuet-ai.nvim',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
opts = {
|
||||
provider = 'gemini',
|
||||
provider_options = {
|
||||
gemini = {
|
||||
model = 'gemini-2.5-flash',
|
||||
optional = {
|
||||
generationConfig = {
|
||||
maxOutputTokens = 256,
|
||||
-- When using `gemini-2.5-flash`, it is recommended to entirely
|
||||
-- disable thinking for faster completion retrieval.
|
||||
thinkingConfig = {
|
||||
thinkingBudget = 0,
|
||||
},
|
||||
},
|
||||
safetySettings = {
|
||||
{
|
||||
-- HARM_CATEGORY_HATE_SPEECH,
|
||||
-- HARM_CATEGORY_HARASSMENT
|
||||
-- HARM_CATEGORY_SEXUALLY_EXPLICIT
|
||||
category = 'HARM_CATEGORY_DANGEROUS_CONTENT',
|
||||
-- BLOCK_NONE
|
||||
threshold = 'BLOCK_ONLY_HIGH',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user