mirror of https://github.com/wlcx/home.git
vim: switch snippy for vsnip
This commit is contained in:
parent
098307eac9
commit
780b0969ed
|
@ -13,8 +13,8 @@
|
|||
nvim-lspconfig
|
||||
nvim-cmp
|
||||
cmp-nvim-lsp
|
||||
nvim-snippy
|
||||
cmp-snippy
|
||||
cmp-vsnip
|
||||
vim-vsnip
|
||||
# Language specific
|
||||
go-nvim
|
||||
rust-vim
|
||||
|
|
|
@ -15,7 +15,7 @@ cmp.setup({
|
|||
-- Use snippy for completion
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('snippy').expand_snippet(args.body)
|
||||
vim.fn["vsnip#anonymous"](args.body)
|
||||
end,
|
||||
},
|
||||
-- Disable completions if we're in a comment
|
||||
|
|
Loading…
Reference in New Issue