Add prettier as basic formatter

This commit is contained in:
Filippo Berto 2021-09-26 10:40:55 +02:00
parent 7903d53ba0
commit 5a96daa7e5

View file

@ -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