replace cmp with blink-cmp
This commit is contained in:
39
lua/crentist/lazy/completion.lua
Normal file
39
lua/crentist/lazy/completion.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
'saghen/blink.cmp',
|
||||
-- optional: provides snippets for the snippet source
|
||||
dependencies = {
|
||||
'rafamadriz/friendly-snippets',
|
||||
{ 'L3MON4D3/LuaSnip', version = 'v2.*' }
|
||||
},
|
||||
-- use a release tag to download pre-built binaries
|
||||
-- version = 'v0.*',
|
||||
build = 'cargo build --release',
|
||||
|
||||
opts = {
|
||||
snippets = {
|
||||
expand = function(snippet) require('luasnip').lsp_expand(snippet) end,
|
||||
active = function(filter)
|
||||
if filter and filter.direction then
|
||||
return require('luasnip').jumpable(filter.direction)
|
||||
end
|
||||
return require('luasnip').in_snippet()
|
||||
end,
|
||||
jump = function(direction) require('luasnip').jump(direction) end,
|
||||
},
|
||||
|
||||
keymap = { preset = 'enter' },
|
||||
|
||||
appearance = {
|
||||
use_nvim_cmp_as_default = true,
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'luasnip', 'path', 'buffer' },
|
||||
cmdline = {},
|
||||
},
|
||||
|
||||
signature = { enabled = true }
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user