From 5a96daa7e505d940491a368565f12b686ed8a798 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 26 Sep 2021 10:40:55 +0200 Subject: [PATCH] Add prettier as basic formatter --- modules/kakoune.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kakoune.nix b/modules/kakoune.nix index 3ed2f42..1ebc20a 100644 --- a/modules/kakoune.nix +++ b/modules/kakoune.nix @@ -145,7 +145,7 @@ in ] ) ++ ( lib.optionals cfg.enableDataSupport [ - { name = "BufSetOption"; option = "filetype=markdown"; commands = "set-option buffer formatcmd ${python3.pkgs.mdformat}/bin/mdformat"; } + { name = "BufSetOption"; option = "filetype=(markdown|html|json|yaml|css|scss|less)"; commands = "set-option buffer formatcmd ${nodePackages.prettier}/bin/prettier"; } ] ); # TODO add more formatters from https://github.com/mawww/kakoune/wiki/Format