feat: add prettierd as an alternative to prettier

This commit is contained in:
raf 2023-07-11 22:54:22 +03:00
parent b5d5700fcc
commit 8cda01b885
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 13 additions and 0 deletions

View file

@ -62,5 +62,7 @@ https://github.com/notashelf[notashelf]:
* Added a module for enabling Neovim's spellchecker * Added a module for enabling Neovim's spellchecker
* Replaced prettier with prettierd - the daemonized version of prettier
* Cleaned up documentation * Cleaned up documentation

View file

@ -36,6 +36,17 @@ with builtins; let
) )
''; '';
}; };
prettierd = {
package = pkgs.prettierd;
nullConfig = ''
table.insert(
ls_sources,
null_ls.builtins.formatting.prettier.with({
command = "${cfg.format.package}/bin/prettierd",
})
)
'';
};
}; };
# TODO: specify packages # TODO: specify packages