nix-config/home/modules/nvim/config/lua/plugins/blink.lua
2025-04-10 00:19:09 +02:00

39 lines
1 KiB
Lua

return {
"saghen/blink.cmp",
dependencies = { "rafamadriz/friendly-snippets" },
version = "1.*",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = { preset = "enter" }, -- 'default' | 'super-tab' | 'enter'
appearance = {
nerd_font_variant = "mono",
},
-- (Default) Only show the documentation popup when manually triggered
-- C-k: Toggle signature help (if signature.enabled = true)
completion = {
documentation = { auto_show = false },
list = {
selection = {
preselect = false,
auto_insert = true,
},
},
},
signature = {
enabled = true,
},
sources = {
default = { "lsp", "path", "snippets", "buffer" },
per_filetype = { sql = { "dadbod" } },
providers = {
dadbod = { module = "vim_dadbod_completion.blink" },
},
},
fuzzy = { implementation = "prefer_rust_with_warning" },
cmdline = {
completion = { menu = { auto_show = true } },
},
},
opts_extend = { "sources.default" },
}