mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-08 05:03:52 +00:00
languages/astro: fix stdenv warning: move prettier out of nodePackages
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I87621112d9676fec2ad3b1ada98a433c6a6a6964
This commit is contained in:
parent
e32bc41b85
commit
6ba72078e7
1 changed files with 2 additions and 2 deletions
|
|
@ -43,10 +43,10 @@
|
|||
|
||||
defaultFormat = ["prettier"];
|
||||
formats = let
|
||||
parser = "${self.packages.${pkgs.stdenv.system}.prettier-plugin-astro}/index.js";
|
||||
parser = "${self.packages.${pkgs.stdenv.hostPlatform.system}.prettier-plugin-astro}/index.js";
|
||||
in {
|
||||
prettier = {
|
||||
command = getExe pkgs.nodePackages.prettier;
|
||||
command = getExe pkgs.prettier;
|
||||
options.ft_parsers.astro = "astro";
|
||||
prepend_args = ["--plugin=${parser}"];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue