1. Using MacOS Catalina: Setting up NVIM-LUA-nvim-lspconfig-ccls, for lua and C++:
2. Build ccls: Following: https://github.com/MaskRay/ccls/wiki/Build
$ brew install ccls
Note: I am NOT clear about additional instruction by mask ray, for brew installation of ccls
2. compile_commands.json:
[{
"directory": "/Users/pt/Documents/Code/C++/sample",
"command": "/Library/Developer/CommandLineTools/usr/bin/c++ -std=c++17 -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -o CMakeFiles/sample.dir/main.cpp.o -c /Users/pt/Documents/Code/C++/sample/main.cpp",
"file": "/Users/pt/Documents/Code/C++/sample/main.cpp"
}]
3. language_servers.lua:
local servers = { 'ccls', 'sumneko_lua' }
for _, lsp in pairs(servers) do
lspconfig[lsp].setup {
capabilities = capabilities,
}
end
require('lspconfig')['ccls'].setup{
on_attach = on_attach,
flags = lsp_flags,
}
ISSUES:
- For C++, Simple Completions and Flags are there. BUT, there is NO IntelliSense, Code Snippets, or Description popup.
What am I doing wrong?