feat: new and improved blink.cmp config
This commit is contained in:
parent
70b946881b
commit
0f1039ca8f
1 changed files with 23 additions and 6 deletions
|
@ -1,13 +1,30 @@
|
||||||
return {
|
return {
|
||||||
"blink-cmp",
|
"blink.cmp",
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
after = function()
|
after = function()
|
||||||
require("blink-cmp").setup({
|
require("blink.cmp").setup({
|
||||||
-- for keymap, all values may be string | string[]
|
keymap = { preset = "default" },
|
||||||
-- use an empty table to disable a keymap
|
|
||||||
keymap = {
|
appearance = {
|
||||||
preset = "default",
|
use_nvim_cmp_as_default = true,
|
||||||
|
nerd_font_variant = "normal",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
sources = {
|
||||||
|
default = { "lsp", "path", "snippets", "buffer" },
|
||||||
|
},
|
||||||
|
completion = {
|
||||||
|
menu = { border = "single" },
|
||||||
|
documentation = {
|
||||||
|
auto_show = true,
|
||||||
|
auto_show_delay_ms = 500,
|
||||||
|
update_delay_ms = 50,
|
||||||
|
treesitter_highlighting = true,
|
||||||
|
window = { border = "single" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
signature = { window = { border = "single" } },
|
||||||
|
fuzzy = { prebuilt_binaries = { force_version = "" } },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue