# HG changeset patch # User zegervdv # Date 1622363557 -7200 # Node ID 80a9a2b73eacd0a8e891116ab727ca1a073203cd # Parent 095b39bdfdf4a51df72e392fb7cf3531a7d26387 Use vsnip for snippets diff -r 095b39bdfdf4 -r 80a9a2b73eac dot_config/nvim/config.lua --- a/dot_config/nvim/config.lua Fri May 28 14:11:29 2021 +0200 +++ b/dot_config/nvim/config.lua Sun May 30 10:32:37 2021 +0200 @@ -144,8 +144,7 @@ nvim_lsp = true, nvim_lua = true, spell = true, - ultisnips = true, - -- TODO add vsnip for LSP snippets + vsnip = true, }, } @@ -196,7 +195,7 @@ 'nvim-treesitter/nvim-treesitter-textobjects', { 'nvim-treesitter/playground', opt = true }, } - use { 'SirVer/ultisnips' } + use { 'hrsh7th/vim-vsnip', requires = 'hrsh7th/vim-vsnip-integ' } use { 'glepnir/lspsaga.nvim', config = function() require'lspsaga'.init_lsp_saga {} end } -- Vanity @@ -357,7 +356,7 @@ nnoremap { '1gD', vim.lsp.buf.type_definition, silent = true } nnoremap { 'gr', vim.lsp.buf.references, silent = true } nnoremap { 'g0', vim.lsp.buf.document_symbol, silent = true } - nnoremap { '', function () vim.lsp.buf.formatting_sync({}, 5000) end, silent = true } + nnoremap { '', function() vim.lsp.buf.formatting_sync({}, 5000) end, silent = true } nnoremap { 'gp', require'lspsaga.provider'.preview_definition, silent = true } inoremap { '', vim.lsp.buf.signature_help, silent = true }