tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.38k stars 89 forks source link

[LSP] Completion for Nickel keywords #1095

Open ebresafegaga opened 1 year ago

yannham commented 1 year ago

Is this really useful? I think keywords are usually small. I don't think rust-analyzer e.g. provides completion for keywords. Are there well-established language providing completion for keywords?

ebresafegaga commented 1 year ago

Yeah thinking about this now, I'm not sure this is really useful. But I think some languages (e.g F#, C#) provide completion for keywords.

aspiwack commented 1 year ago

I remembered something. Ocaml doesn't complete keywords, traditionally (I don't use Ocaml a lot of late), and it's annoying for one specific reason: whenever I type in in Emacs (like in let … in), it autocompletes to something from the standard library that starts in in (like in_channel, though I think it's another function). This is such a weird quirk. But there are certainly cheaper solutions than auto-completion of all keywords :slightly_smiling_face: .

matthew-healy commented 1 year ago

I don't think rust-analyzer e.g. provides completion for keywords.

It does!

Screenshot from 2023-02-17 13-21-39