25 lines
502 B
Lua
25 lines
502 B
Lua
---@type blink.cmp.API
|
|
local cmp = require("blink.cmp")
|
|
|
|
cmp.build():pwait()
|
|
|
|
---@type blink.cmp.Config
|
|
local cmp_options = {
|
|
keymap = { preset = "default" },
|
|
completion = {
|
|
menu = { auto_show = true },
|
|
documentation = { auto_show = true },
|
|
ghost_text = { enabled = true },
|
|
list = {
|
|
selection = {
|
|
auto_insert = false,
|
|
preselect = true,
|
|
},
|
|
},
|
|
},
|
|
sources = { default = { "lsp", "path", "snippets", "buffer" } },
|
|
fuzzy = { implementation = "rust" },
|
|
}
|
|
|
|
cmp.setup(cmp_options)
|