nvim: add minuet-ai and codestral for completion
This commit is contained in:
parent
67e262a4b7
commit
6d8e419757
3 changed files with 51 additions and 6 deletions
home/common/nvim
|
@ -5,6 +5,7 @@ require 'blink-cmp'.setup({
|
|||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||
['<PageDown>'] = { 'scroll_documentation_down', 'fallback' },
|
||||
['<PageUp>'] = { 'scroll_documentation_up', 'fallback' },
|
||||
['<A-y>'] = require('minuet').make_blink_map(),
|
||||
},
|
||||
completion = {
|
||||
accept = {
|
||||
|
@ -46,7 +47,11 @@ require 'blink-cmp'.setup({
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
trigger = {
|
||||
prefetch_on_insert = false
|
||||
},
|
||||
},
|
||||
|
||||
fuzzy = {
|
||||
|
@ -61,21 +66,30 @@ require 'blink-cmp'.setup({
|
|||
},
|
||||
|
||||
cmdline = {
|
||||
sources = {},
|
||||
keymap = { preset = 'inherit' },
|
||||
completion = { menu = { auto_show = true } },
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = {
|
||||
'lsp',
|
||||
'emoji',
|
||||
'minuet',
|
||||
},
|
||||
providers = {
|
||||
emoji = {
|
||||
module = "blink-emoji",
|
||||
name = "Emoji",
|
||||
score_offset = 1,
|
||||
score_offset = -40,
|
||||
opts = { insert = true },
|
||||
}
|
||||
},
|
||||
minuet = {
|
||||
name = 'minuet',
|
||||
module = 'minuet.blink',
|
||||
async = true,
|
||||
timeout_ms = 3000, -- Should match minuet.config.request_timeout * 1000
|
||||
score_offset = -50,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -48,6 +48,7 @@ in
|
|||
blink-emoji-nvim
|
||||
friendly-snippets
|
||||
go-nvim
|
||||
plenary-nvim
|
||||
targets-vim
|
||||
ts-comments-nvim
|
||||
|
||||
|
@ -115,6 +116,37 @@ in
|
|||
config = lib.fileContents ./mini.lua;
|
||||
}
|
||||
|
||||
{
|
||||
plugin = minuet-ai-nvim;
|
||||
type = "lua";
|
||||
config = ''
|
||||
require('minuet').setup {
|
||||
provider_options = {
|
||||
codestral = {
|
||||
optional = {
|
||||
max_tokens = 256,
|
||||
stop = { '\n\n' },
|
||||
},
|
||||
},
|
||||
},
|
||||
virtualtext = {
|
||||
auto_trigger_ft = {
|
||||
'go',
|
||||
'rust',
|
||||
},
|
||||
keymap = {
|
||||
accept = '<A-a>',
|
||||
accept_line = '<A-A>',
|
||||
accept_n_lines = '<A-z>',
|
||||
prev = '<A-[>',
|
||||
next = '<A-]>',
|
||||
dismiss = '<A-e>',
|
||||
},
|
||||
},
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
plugin = rustaceanvim;
|
||||
type = "lua";
|
||||
|
|
|
@ -114,7 +114,6 @@ local colors = {
|
|||
}
|
||||
|
||||
local setupGroups = function(c)
|
||||
|
||||
return {
|
||||
Normal = { fg = c.foreground, bg = c.background },
|
||||
|
||||
|
@ -231,7 +230,7 @@ local setupGroups = function(c)
|
|||
BlinkCmpSignatureHelpBorder = { link = 'BlinkCmpDocBorder' },
|
||||
|
||||
BlinkCmpGhostText = { fg = c.suggestion, italic = true, bold = true },
|
||||
NeoCodeiumSuggestion = { link = 'BlinkCmpGhostText' },
|
||||
MinuetVirtualText = { link = 'BlinkCmpGhostText' },
|
||||
|
||||
LspReferenceText = { fg = c.highlight_intense, undercurl = true },
|
||||
LspInlayHint = { fg = c.accent1, italic = true, bold = true },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue