Moves to blink for completions
This commit is contained in:
parent
be87cd2a73
commit
0b367e1656
2 changed files with 28 additions and 276 deletions
28
home/modules/nvim/config/lua/plugins/blink.lua
Normal file
28
home/modules/nvim/config/lua/plugins/blink.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
"saghen/blink.cmp",
|
||||
dependencies = { "rafamadriz/friendly-snippets" },
|
||||
version = "1.*",
|
||||
---@module 'blink.cmp'
|
||||
---@type blink.cmp.Config
|
||||
opts = {
|
||||
keymap = { preset = "super-tab" }, -- '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 } },
|
||||
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" },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue