oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.28k stars 39 forks source link

[feature] shell completion #97

Open Freed-Wu opened 1 year ago

Freed-Wu commented 1 year ago

Can it provide completions for common shells? I guess https://docs.rs/clap_complete/latest/clap_complete can be helpful. TIA!

oxalica commented 10 months ago

Currently we are using argh for command line parser, which does not support shell completion generation yet https://github.com/google/argh/issues/11. Maintaining multiple shell scripts is not my favour.

The reason for using argh instead of clap is that clap will bloat compilation time and probably also the binary size, but I don't have any precise measurement.