Open CDitzel opened 5 years ago
Hi again, I've just updated the config to use lsp-mode instead of YCMD. I've had various issues like you mentioned in the past. Much to my annoyance they were usually related to subtle changes in the YCMD interface. So far I've had good luck with LSP-mode + clangd, though I am using clangd (cutting edge).
thanks for your reply Nils ;) I took a look at your new config now. So you also made the switch to LSP then. I tried that some month ago and found it to be laggy to an extend where it became unbearable to work with. That seems to be better now. What clangd have you installed on your system? I cannot find any reference to a specific version in your config as per
(setq lsp-clangd-executable "clangd-8") (setq lsp-clients-clangd-executable "clangd-8")
or something like that. Are those lines not necessary and lsp will find the globally installed clangd anyway?
You're welcome :)
Yea, I made the same experience with LSP a while back, which was why I always used YCMD. I'm hopeful that LSP is now at the state where it can be a full long-term replacement for me.
I use clangd 9 (I'm an Arch Linux user so the system clang just got upgraded to clang 9). I waited for clang 9 since there were a lot of features I wanted added to clangd then (https://clang.llvm.org/extra/clangd/Features.html).
You're right, the specific executable is not necessary if clangd is installed globally. I'll see if I can add a configuration option at the top of the file for this. Won't be until the weekend likely.
Trying to set up Emacs, following your steps, everything seems to work but upon startup, I get error
why is that? Iinstalled ycmda and changed the path from your specific ones to mine. Help would be appreciated