mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-03 15:32:09 +00:00
add xdg support
This commit is contained in:
parent
80d06eb476
commit
b7c425bd36
@ -35,7 +35,8 @@ struct Config {
|
||||
//
|
||||
// If empty, retainInMemory will be set to 1 and cache will be stored in
|
||||
// memory.
|
||||
std::string directory = ".ccls-cache";
|
||||
std::string cache_dir = getenv("XDG_CACHE_HOME");
|
||||
std::string directory = cache_dir + "/ccls-cache";
|
||||
|
||||
// Cache serialization format.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user