mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 08:39:50 +01: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