Nvim: add minuet and some other stuff

This commit is contained in:
Robert Kmieć
2025-06-12 22:43:06 +02:00
parent 04bdd470fd
commit 704a095798
4 changed files with 46 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ return { {
'xzbdmw/colorful-menu.nvim',
'disrupted/blink-cmp-conventional-commits',
'moyiz/blink-emoji.nvim',
'milanglacier/minuet-ai.nvim',
},
-- use a release tag to download pre-built binaries
@@ -22,7 +23,10 @@ return { {
-- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate)
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
-- See the full "keymap" documentation for information on defining your own keymap.
keymap = { preset = 'default' },
keymap = {
preset = 'default',
--['A-y'] = require('minuet').make_blink_map()
},
appearance = {
-- -- Sets the fallback highlight groups to nvim-cmp's highlight groups
@@ -37,7 +41,7 @@ return { {
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources = {
default = { 'conventional_commits', 'lsp', 'path', 'snippets', 'buffer', 'emoji', 'codecompanion' },
default = { 'conventional_commits', 'lsp', 'path', 'snippets', 'buffer', 'emoji', 'codecompanion', --[[ 'minuet' ]] },
providers = {
conventional_commits = {
name = "Conventional Commits",
@@ -53,9 +57,18 @@ return { {
score_offset = 15,
opts = { insert = true },
should_show_items = function()
return vim.tbl_contains({"gitcommit", "markdown" }, vim.o.filetype)
return vim.tbl_contains({ "gitcommit", "markdown" }, vim.o.filetype)
end,
}
},
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
},
}
},
@@ -75,6 +88,7 @@ return { {
}
}
},
--trigger = { prefetch_on_insert = false },
accept = { auto_brackets = { enabled = false }, },
ghost_text = { enabled = false },