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-lspconfig
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
cmp-nvim-lsp
|
cmp-nvim-lsp
|
||||||
nvim-snippy
|
cmp-vsnip
|
||||||
cmp-snippy
|
vim-vsnip
|
||||||
# Language specific
|
# Language specific
|
||||||
go-nvim
|
go-nvim
|
||||||
rust-vim
|
rust-vim
|
||||||
|
|
|
@ -15,7 +15,7 @@ cmp.setup({
|
||||||
-- Use snippy for completion
|
-- Use snippy for completion
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
require('snippy').expand_snippet(args.body)
|
vim.fn["vsnip#anonymous"](args.body)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- Disable completions if we're in a comment
|
-- Disable completions if we're in a comment
|
||||||
|
|
Loading…
Reference in New Issue