add path & buffer cmp sources

This commit is contained in:
Mans Ziesel 2023-09-03 19:15:40 +02:00
parent d9bd64b1da
commit 57eb84b700
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
lazy-lock.json

View File

@ -107,10 +107,13 @@ require('lazy').setup({
-- Adds a number of user-friendly snippets -- Adds a number of user-friendly snippets
'rafamadriz/friendly-snippets', 'rafamadriz/friendly-snippets',
-- Adds buffer source
'hrsh7th/cmp-buffer', 'hrsh7th/cmp-buffer',
--
-- Adds path source
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lua', 'hrsh7th/cmp-nvim-lua',
"rafamadriz/friendly-snippets"
}, },
}, },
@ -556,6 +559,8 @@ cmp.setup {
sources = { sources = {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'luasnip' }, { name = 'luasnip' },
{ name = 'buffer' },
{ name = 'path' },
}, },
} }