9fans / acme-lsp

Language Server Protocol tools for the acme text editor
MIT License
197 stars 25 forks source link

Support specify configuration file through cmdline #38

Closed tw4452852 closed 3 years ago

tw4452852 commented 3 years ago

It will be handy if we can override the default configuration file path by something like this:

acme-lsp -c /path/to/config.toml
fhs commented 3 years ago

Duplicate of #21.

I think it'll be better to add an environment variable (e.g. ACME_LSP_CONFIG) which specified the location of the config file. Both the acme-lsp command and L command needs to use the same config file, and I can imagine having the specify -c flag to L will be inconvenient.