mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
add snips to cmp
This commit is contained in:
@@ -8,6 +8,7 @@ local cmp = require 'cmp'
|
||||
|
||||
cmp.setup {
|
||||
sources = {
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'path' },
|
||||
{ name = 'buffer' },
|
||||
@@ -61,3 +62,5 @@ vim.keymap.set({ 'i', 's' }, '<c-j>', function()
|
||||
ls.jump(-1)
|
||||
end
|
||||
end, { silent = true })
|
||||
|
||||
require('luasnip/loaders/from_vscode').lazy_load()
|
||||
|
||||
@@ -10,6 +10,7 @@ return {
|
||||
'hrsh7th/cmp-buffer',
|
||||
{ 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' },
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
'rafamadriz/friendly-snippets',
|
||||
},
|
||||
config = function()
|
||||
require 'completion'
|
||||
|
||||
Reference in New Issue
Block a user