Closed Mic92 closed 1 year ago
maybe buildInputs and nativeBuildInputs:
snippet buildInputs "buildInputs"
buildInputs = [ ${1} ];
endsnippet
snippet nativeBuildInputs "nativeBuildInputs"
nativeBuildInputs = [ ${1} ];
endsnippet
but this is probably not saving a lot typing.
but nixpkgs
might be handy:
snippet nixpkgs "with import <nixpkgs> {};"
with import <nixpkgs> {};
endsnippet
Someone else can pick this up. These days I use something smarter than snippet templates.
Added some snippets at https://github.com/rafamadriz/friendly-snippets/pull/356 . Thanks for the inspiration.
Used by that extension: https://github.com/SirVer/ultisnips