Closed NamelessDev0000 closed 2 years ago
The issue here is with the requires
for cmp-nvim-lsp
. The issue is that you are only passing one table. requires
can take either a string
or a table
. A string is passed for one require and a table for multiple requires. Since you are passing a table requires thinks there is a list of requirements. There is only one that is more complex then just a string.
To resolve this just add an extra table to the requires.
use {
'hrsh7th/nvim-cmp',
config = function()
print 'nvim-cmp config'
end,
requires = {
{
'hrsh7th/cmp-nvim-lsp',
requires = {
{
'williamboman/nvim-lsp-installer',
config = function()
print 'nvim-lsp-installer config'
end,
requires = 'nvim-lspconfig',
},
},
},
{
'saadparwaiz1/cmp_luasnip',
requires = 'L3MON4D3/LuaSnip',
},
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
},
}
The issue here is with the
requires
forcmp-nvim-lsp
. The issue is that you are only passing one table.requires
can take either astring
or atable
. A string is passed for one require and a table for multiple requires. Since you are passing a table requires thinks there is a list of requirements. There is only one that is more complex then just a string.To resolve this just add an extra table to the requires.
use { 'hrsh7th/nvim-cmp', config = function() print 'nvim-cmp config' end, requires = { { 'hrsh7th/cmp-nvim-lsp', requires = { { 'williamboman/nvim-lsp-installer', config = function() print 'nvim-lsp-installer config' end, requires = 'nvim-lspconfig', }, }, }, { 'saadparwaiz1/cmp_luasnip', requires = 'L3MON4D3/LuaSnip', }, 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', 'hrsh7th/cmp-cmdline', }, }
Yeah, it's my fault... solved! thx...
nvim --version
:Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
packer couldn't find 'nvim-lspconfig'.