Skip to content

Commit d8a1dbc

Browse files
authored
Use cmp-nvim-lua as nvim-cmp source for neovim Lua API (#696)
* Use cmp-nvim-lua as nvim-cmp source for neovim Lua API * Move the dependency to a more suitable place
1 parent 000a5c4 commit d8a1dbc

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
@@ -640,6 +640,9 @@ require('lazy').setup({
640640
-- into multiple repos for maintenance purposes.
641641
'hrsh7th/cmp-nvim-lsp',
642642
'hrsh7th/cmp-path',
643+
-- nvim-cmp source for neovim Lua API
644+
-- so that things like vim.keymap.set, etc. are autocompleted
645+
'hrsh7th/cmp-nvim-lua',
643646

644647
-- If you want to add a bunch of pre-configured snippets,
645648
-- you can use this plugin to help you. It even has snippets
@@ -701,6 +704,7 @@ require('lazy').setup({
701704
end, { 'i', 's' }),
702705
},
703706
sources = {
707+
{ name = 'nvim_lua' },
704708
{ name = 'nvim_lsp' },
705709
{ name = 'luasnip' },
706710
{ name = 'path' },

0 commit comments

Comments
 (0)