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
This commit is contained in:
parent
000a5c42b0
commit
d8a1dbc4b4
4
init.lua
4
init.lua
|
@ -640,6 +640,9 @@ require('lazy').setup({
|
||||||
-- into multiple repos for maintenance purposes.
|
-- into multiple repos for maintenance purposes.
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
'hrsh7th/cmp-path',
|
'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,
|
-- If you want to add a bunch of pre-configured snippets,
|
||||||
-- you can use this plugin to help you. It even has snippets
|
-- you can use this plugin to help you. It even has snippets
|
||||||
|
@ -701,6 +704,7 @@ require('lazy').setup({
|
||||||
end, { 'i', 's' }),
|
end, { 'i', 's' }),
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
|
{ name = 'nvim_lua' },
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user