Automaticly updating the clangd LSP is not working
minego opened this issue · 5 comments
I enabled the clangd callback as explained in the docs, and have this in my config for cmake-tools: ```
cmake_soft_link_compile_commands = false,
cmake_compile_commands_from_lsp = true,
But, it doesn't appear to be working. When I run `:LspInfo` I see that clangd was started with this command:
clangd --background-index --limit-results=0 --compile-commands-dir=/home/m/src/venafi/csc/./build/default
I cleared out the session files in ~/.config and I can't think of anything else that could be causing it to fail.
See docs:
cmake-tools.nvim/docs/howto.md
Line 3 in 8d63e25
Weird, I cannot reproduce this error. And this is my configuration for clangd: https://github.com/Civitasv/runvim/blob/19863e135f5b990bea1cb2d6cfab0b9776dc5918/lua/plugins/lsp/configs.lua#L88-L102.
Okay, I think I got this working now. I guess I was too tired yesterday, and missed some obvious bits. I had not included -DCMAKE_EXPORT_COMPILE_COMMANDS=1
in my default config options because it used to be turned on by default for the project I'm working on. But, at some point that was changed and I hadn't realized it.
Anyway, I added that back today and it seems to be working now. Sorry for the confusion, and thanks for the help!