LnL7 / vim-nix

Vim configuration files for Nix http://nixos.org/nix
MIT License
288 stars 26 forks source link

Support for antiquotations in paths #41

Closed figsoda closed 9 months ago

figsoda commented 3 years ago

https://nixos.org/manual/nix/unstable/expressions/language-values.html

Antiquotation is supported in any paths except those in angle brackets. ./${foo}-${bar}.nix is a more convenient way of writing ./. + "/" + foo + "-" + bar + ".nix" or ./. + "/${foo}-${bar}.nix". At least one slash must appear before any antiquotations for this to be recognized as a path. a.${foo}/b.${bar} is a syntactically valid division operation. ./a.${foo}/b.${bar} is a path.

Ma27 commented 1 year ago

for the record, it's on my todolist :sweat_smile:

That said, if someone else beats me to do it, that would be also fine %)