Closed Maverobot closed 4 years ago
I found the solution, which seems to work.
(setq ccls-initialization-options
(list :compilationDatabaseDirectory "build"))
Two alternatives:
ln -s build/compile_commands.txt .
touch .ccls-root
+ (setq ccls-initialization-options '(:compilationDatabaseDirectory "build"))
https://github.com/MaskRay/ccls/wiki/Customization#compilationdatabasedirectoryInventing a new way in elisp is probably unnecessary.
Does ccls read dir-locals? Then it would be best to set the variable there.
Thanks for the awesome work!
As a ycmd user for a long time, I find your solution much more powerful. However, it seems
ccls
requires thecompile_commands.json
to be at project root. Is it possible to tellccls
to search it also inbuild
folder?