Open IOU4 opened 11 months ago
I have a minimal neovim setup without a plugin manager, so I git-cloned the lspconfig, nvim-cmp and cmp-nvim-lsp repos into the runtimepath. config loaded in init.lua:
lspconfig
nvim-cmp
cmp-nvim-lsp
require'cmp'.setup { sources = { {name = 'nvim_lsp'} } } local capabilities = require('cmp_nvim_lsp').default_capabilities() require'lspconfig'.lua_ls.setup { capabilities = capabilities, }
lsp is detected since it does show diagnosis in a lua file, but completion does not work and :CmpStatus shows:
:CmpStatus
:CmpStatus # unknown source names - nvim_lsp
I use runtime! after/plugin/*.lua to load sources.
runtime! after/plugin/*.lua
Note: It is Vim script though.
In fact, my cmpstatus is in the same situation, but it doesn't seem to affect normal use.
I have a minimal neovim setup without a plugin manager, so I git-cloned the
lspconfig
,nvim-cmp
andcmp-nvim-lsp
repos into the runtimepath. config loaded in init.lua:lsp is detected since it does show diagnosis in a lua file, but completion does not work and
:CmpStatus
shows: