kickstart.nvim/lua/plugins/completion.lua

42 lines
1020 B
Lua

return {
{
'saghen/blink.cmp',
event = 'VimEnter',
version = '1.*',
dependencies = {
{
'L3MON4D3/LuaSnip',
version = '2.*',
build = (function()
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then return end
return 'make install_jsregexp'
end)(),
opts = {},
},
},
opts = {
keymap = {
preset = 'default',
},
appearance = {
nerd_font_variant = 'normal',
},
completion = {
documentation = { auto_show = false, auto_show_delay_ms = 500 },
},
sources = {
default = { 'lsp', 'path', 'snippets' },
per_filetype = {
sql = { 'snippets', 'dadbod', 'buffer' },
},
providers = {
dadbod = { name = 'Dadbod', module = 'vim_dadbod_completion.blink' },
},
},
snippets = { preset = 'luasnip' },
fuzzy = { implementation = 'lua' },
signature = { enabled = true },
},
},
}