Skip to content

Commit 7e17ce1

Browse files
jamylakhchienjo
authored andcommitted
Use cmp-nvim-lua as nvim-cmp source for neovim Lua API (nvim-lua#696)
* Use cmp-nvim-lua as nvim-cmp source for neovim Lua API * Move the dependency to a more suitable place
1 parent 2e0b508 commit 7e17ce1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ require('lazy').setup({
638638
-- into multiple repos for maintenance purposes.
639639
'hrsh7th/cmp-nvim-lsp',
640640
'hrsh7th/cmp-path',
641+
-- nvim-cmp source for neovim Lua API
642+
-- so that things like vim.keymap.set, etc. are autocompleted
643+
'hrsh7th/cmp-nvim-lua',
641644

642645
-- If you want to add a bunch of pre-configured snippets,
643646
-- you can use this plugin to help you. It even has snippets
@@ -699,6 +702,7 @@ require('lazy').setup({
699702
end, { 'i', 's' }),
700703
},
701704
sources = {
705+
{ name = 'nvim_lua' },
702706
{ name = 'nvim_lsp' },
703707
{ name = 'luasnip' },
704708
{ name = 'path' },

0 commit comments

Comments
 (0)