vlang / vls

V language server. (Old V language server - see v-analyzer)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support XDG base directory specification for ~/.vls

yochem opened this issue · comments

To declutter the home directory, it would be nice to respect the XDG base directory environment variables ($XDG_CONFIG_HOME, $XDG_CACHE_HOME, $XDG_DATA_HOME, $XDG_STATE_HOME), instead of writing to ~/.vls. Another option would be to use v's os.config_dir() and os.cache_dir() if it's just config or cache files (but I think it are logs, which should go in xdg's state directory).