-
Hey there, the code suggestions keep triggering in normal mode, when hovering over compatible text. auto_show = function(ctx)
return ctx.mode == 'cmdline' or ctx.mode == 'default'
end, I have not tested it with an MRE yet. Any idea why this might happen? config.luaSorry for the messy config return {
"saghen/blink.cmp",
enabled = true,
verion = "*",
build = 'cargo build --release',
dependencies = {
"saghen/blink.compat",
{
"supermaven-inc/supermaven-nvim",
opts = {
keymaps = {
accept_suggestion = "<A-l>",
},
color = {
suggestion_color = "#e3d394",
cterm = 244,
},
disable_inline_completion = false,
},
},
{ "giuxtaposition/blink-cmp-copilot" },
{ "onsails/lspkind.nvim", config = lspkind_config },
"rafamadriz/friendly-snippets",
},
opts = {
appearance = {
use_nvim_cmp_as_default = true,
},
sources = {
default = { "buffer", "path", "lsp", "snippets", "supermaven", "copilot" },
providers = {
supermaven = {
enabled = true,
name = "supermaven",
module = "blink.compat.source",
score_offset = 200,
},
copilot = {
enabled = true,
name = "copilot",
module = "blink-cmp-copilot",
score_offset = 199,
async = true,
},
}
},
completion = {
keyword = {
range = "full",
},
list = { selection = { preselect = false, auto_insert = function(ctx) return ctx.mode == 'cmdline' end } },
menu = {
auto_show = function(ctx)
return ctx.mode == 'cmdline' or ctx.mode == 'default'
end,
draw = {
treesitter = { 'lsp' },
columns = {
{ 'label', width = { fill = true } },
{ 'label_description' },
{ "item_idx" },
{ 'kind_icon' },
},
components = {
item_idx = {
text = function(ctx) return tostring(ctx.idx) end,
},
kind_icon = {
text = function(ctx)
return require("lspkind").symbolic(ctx.kind, {
mode = "symbol",
preset = "codicons",
})
end,
},
},
},
},
documentation = {
auto_show = false,
auto_show_delay_ms = 0,
},
ghost_text = { enabled = true },
},
signature = {
enabled = true,
},
keymap = {
preset = 'default',
['<C-j>'] = { 'select_next', 'select_next' },
['<C-k>'] = { 'select_prev', 'select_prev' },
['<CR>'] = { 'select_and_accept', 'fallback' },
['<C-Space>'] = { 'show', 'show_documentation', 'hide_documentation' },
['<C-u>'] = { 'scroll_documentation_up', 'fallback' },
['<C-d>'] = { 'scroll_documentation_down', 'fallback' },
['<C-e>'] = { 'hide' },
['<C-f>'] = { 'snippet_forward', 'fallback' },
['<C-b>'] = { 'snippet_backward', 'fallback' },
['<Tab>'] = { 'snippet_forward', 'fallback' },
['<S-Tab>'] = { 'snippet_backward', 'fallback' },
['<A-1>'] = { function(cmp) cmp.accept({ index = 1 }) end },
['<A-2>'] = { function(cmp) cmp.accept({ index = 2 }) end },
['<A-3>'] = { function(cmp) cmp.accept({ index = 3 }) end },
['<A-4>'] = { function(cmp) cmp.accept({ index = 4 }) end },
['<A-5>'] = { function(cmp) cmp.accept({ index = 5 }) end },
['<A-6>'] = { function(cmp) cmp.accept({ index = 6 }) end },
['<A-7>'] = { function(cmp) cmp.accept({ index = 7 }) end },
['<A-8>'] = { function(cmp) cmp.accept({ index = 8 }) end },
['<A-9>'] = { function(cmp) cmp.accept({ index = 9 }) end },
['<A-0>'] = { function(cmp) cmp.accept({ index = 10 }) end },
cmdline = {
preset = 'enter',
['<C-j>'] = { 'select_next', 'select_next' },
['<TAB>'] = { 'select_next', 'select_next' },
['<C-k>'] = { 'select_prev', 'select_prev' },
},
}
}
} Plugins
|
Beta Was this translation helpful? Give feedback.
Answered by
vonPB
Mar 11, 2025
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vonPB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nyngwang/murmur.lua
caused the suggestions to open. Disabled it and no issues so far...