4 ms·
I've migrated from Neovim 0.4.x to upcoming Neovim 0.5.x last week, together with neovim-plug. Then I installed nvim-lsp and nvim-comp, as LSP-Server I used CLA
by ho_schi 5y ago
I've migrated from Neovim 0.4.x to upcoming Neovim 0.5.x last week, together with neovim-plug. Then I installed nvim-lsp and nvim-comp, as LSP-Server I used CLANGD (sadly there is no nothing similiar from GCC available) for C and C++. And it is awesome :)
I'm was actuall missing short and clear guide. It's actually easy. What I've struggled with are the ERROR and WARNING markers, they use default colors which doesn't match well the used theme (peachbuff).
Change it if required:
hi LspDiagnosticsVirtualTextError ctermfg=Red ctermbg=White
hi LspDiagnosticsVirtualTextWarning ctermfg=DarkYellow ctermbg=White
I recommend that all your projects setup use a specific C or C++ Version. Why? Because GCC 11 uses by default C++17 but CLANG 11 uses C++14 by default. e.g. with Meson:
project('project_name', 'cpp', version : '0.99', default_options : ['cpp_std=c++17'])