lapce-cpp-clangd icon indicating copy to clipboard operation
lapce-cpp-clangd copied to clipboard

C++ files ending in .cxx are not picked up by LSP

Open carterols opened this issue 1 year ago • 1 comments

All of the C++ files in our project have the .cxx suffix. Whenever I open the .cxx file, the clangd server isn't started and LSP functions like go-to definition don't work. They only work in the C files.

I'm not sure if this is a plugin bug, or a lapce bug. Let me know if I need to file this issue with the main lapce repository.

carterols avatar Jan 04 '24 16:01 carterols

I added a pull request that adds options to adjust the file extensions. I'm not sure whether this repo is still maintained so if you want you can try to build it from my fork. After building you should be able to copy volt.toml and target/wasm32-wasi/release/lapce-cpp-clangd.wasm to the plugin folder (~/.local/share/lapce-stable/plugins/panekj.lapce-cpp-clangd/ on Linux). You should then see the new options in the settings. Note that you need to restart Lapce after changing the file extensions for it to take effect.

Rakksor avatar Jan 19 '24 19:01 Rakksor