lapce / lapce-rust

Apache License 2.0
80 stars 26 forks source link

Allow easier analyzer configuration #28

Closed TheIronBorn closed 1 year ago

TheIronBorn commented 1 year ago

At least allowing the user to manually set some config json per https://rust-analyzer.github.io/manual.html#configuration would be nice

panekj commented 1 year ago

You can already do that via settings file

TheIronBorn commented 1 year ago

Can you provide an example? I tried several methods in https://github.com/lapce/lapce/issues/180 but none seemed to work

TheIronBorn commented 1 year ago

For posterity, I was able to change RUSTFLAGS with

[lapce-rust]
"server.extraEnv.RUSTFLAGS" = "arg1 arg2"

in .../AppData/Roaming/lapce/Lapce-Stable/config/settings.toml