mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
commit
5e0a9b1d07
2 changed files with 14 additions and 1 deletions
|
@ -65,5 +65,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
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ with builtins; let
|
|||
};
|
||||
|
||||
# TODO: specify packages
|
||||
defaultFormat = "prettier";
|
||||
defaultFormat = "prettierd";
|
||||
formats = {
|
||||
prettier = {
|
||||
package = pkgs.nodePackages.prettier;
|
||||
|
@ -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