Files
nvim/lua/completion.lua
2026-06-03 21:58:43 +03:00

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)