MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.73k stars 255 forks source link

[Enhancement] Global options #842

Closed jay-tux closed 2 years ago

jay-tux commented 2 years ago

Just an idea, but would it be possible to add some global configuration? Like a .ccls in (for example) .config/ccls/ or the likes?

(Asking because the Atom plugin doesn't seem to work well with project-wide .ccls or compile_commands.json and I'd really like to have it include the inc/ directory of my project when indexing)

MaskRay commented 2 years ago

A global .ccls file is not suitable. .ccls is an indicator that you want to index the whole project. In the absence of this file, ccls doesn't index every file. https://github.com/MaskRay/ccls/wiki/Project-Setup

For configurations, use initialization options (https://github.com/MaskRay/ccls/wiki/Customization#initialization-options).