Skip to content

Commit

Permalink
Use cmp-nvim-lua as nvim-cmp source for neovim Lua API (nvim-lua#696
Browse files Browse the repository at this point in the history
)

* Use cmp-nvim-lua as nvim-cmp source for neovim Lua API

* Move the dependency to a more suitable place
  • Loading branch information
jamylak authored Mar 12, 2024
1 parent 000a5c4 commit d8a1dbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,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
Expand Down Expand Up @@ -701,6 +704,7 @@ require('lazy').setup({
end, { 'i', 's' }),
},
sources = {
{ name = 'nvim_lua' },
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },
Expand Down

0 comments on commit d8a1dbc

Please sign in to comment.