# HG changeset patch # User zegervdv # Date 1636457079 -3600 # Node ID bed1479d9b102ac649840a1f0b1eaac391aff0b9 # Parent 160e93d776f3ebf56c448b07c24b0ebf9962fd34 Replace vsnip with luasnip diff -r 160e93d776f3 -r bed1479d9b10 .chezmoitemplates/config.vim --- a/.chezmoitemplates/config.vim Fri Nov 05 15:52:44 2021 +0100 +++ b/.chezmoitemplates/config.vim Tue Nov 09 12:24:39 2021 +0100 @@ -12,11 +12,6 @@ endif source $VIMRUNTIME/ftplugin/man.vim -if has('packages') - silent! packadd! log_file - silent! packadd! snippets -endif - packadd vim-dirvish if has("nvim") diff -r 160e93d776f3 -r bed1479d9b10 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Fri Nov 05 15:52:44 2021 +0100 +++ b/.chezmoitemplates/init.lua Tue Nov 09 12:24:39 2021 +0100 @@ -218,13 +218,13 @@ use { 'neovim/nvim-lspconfig' } use { 'hrsh7th/nvim-cmp', - requires = { 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-vsnip', 'hrsh7th/cmp-path' }, + requires = { 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-nvim-lsp', 'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-path' }, config = function() local cmp = require 'cmp' cmp.setup { snippet = { expand = function(args) - vim.fn['vsnip#anonymous'](args.body) + require('luasnip').lsp_expand(args.body) end, }, mapping = { @@ -240,7 +240,7 @@ sources = { { name = 'nvim_lsp' }, { name = 'buffer', keyword_length = 5 }, - { name = 'vsnip' }, + { name = 'luasnip' }, { name = 'path' }, }, experimental = { @@ -249,6 +249,7 @@ }, } end, + after = 'luasnip', } use { { @@ -292,7 +293,7 @@ 'nvim-treesitter/nvim-treesitter-textobjects', { 'nvim-treesitter/playground', opt = true }, } - use { 'hrsh7th/vim-vsnip', requires = 'hrsh7th/vim-vsnip-integ' } + use { 'L3MON4D3/luasnip' } use { 'rmagatti/goto-preview', config = function()