39 lines
897 B
Lua
39 lines
897 B
Lua
return {
|
|
"saghen/blink.cmp",
|
|
event = "VimEnter",
|
|
version = "1.*",
|
|
dependencies = {
|
|
"folke/lazydev.nvim",
|
|
},
|
|
--- @module 'blink.cmp'
|
|
--- @type blink.cmp.Config
|
|
opts = {
|
|
keymap = {
|
|
-- See `:help ins-completion`
|
|
-- <tab>/<s-tab>: move to right/left of your snippet expansion
|
|
-- <c-space>: Open menu or open docs if already open
|
|
-- <c-n>/<c-p> or <up>/<down>: Select next/previous item
|
|
-- <c-e>: Hide menu
|
|
-- <c-k>: Toggle signature help
|
|
preset = "super-tab",
|
|
},
|
|
|
|
appearance = { nerd_font_variant = "mono" },
|
|
|
|
completion = {
|
|
documentation = { auto_show = false, auto_show_delay_ms = 500 },
|
|
},
|
|
|
|
sources = {
|
|
default = { "lsp", "path", "lazydev" },
|
|
providers = {
|
|
lazydev = { module = "lazydev.integrations.blink", score_offset = 100 },
|
|
},
|
|
},
|
|
|
|
fuzzy = { implementation = "prefer_rust_with_warning" },
|
|
|
|
signature = { enabled = true },
|
|
},
|
|
}
|