mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 22:55:58 +01:00
feat: add prettierd as an alternative to prettier
This commit is contained in:
parent
b5d5700fcc
commit
8cda01b885
2 changed files with 13 additions and 0 deletions
|
@ -62,5 +62,7 @@ https://github.com/notashelf[notashelf]:
|
|||
|
||||
* Added a module for enabling Neovim's spellchecker
|
||||
|
||||
* Replaced prettier with prettierd - the daemonized version of prettier
|
||||
|
||||
* Cleaned up documentation
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue