diff --git a/init.lua b/init.lua index 16d3c26b1ec..c4a947668ca 100644 --- a/init.lua +++ b/init.lua @@ -647,6 +647,9 @@ require('lazy').setup { -- into multiple repos for maintenance purposes. 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', + -- nvim-cmp source for neovim Lua API + -- so that things like vim.keymap.set, etc. are autocompleted + 'hrsh7th/cmp-nvim-lua', -- If you want to add a bunch of pre-configured snippets, -- you can use this plugin to help you. It even has snippets @@ -708,6 +711,7 @@ require('lazy').setup { end, { 'i', 's' }), }, sources = { + { name = 'nvim_lua' }, { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' },