Add prettier as basic formatter
This commit is contained in:
parent
7903d53ba0
commit
5a96daa7e5
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ in
|
||||||
]
|
]
|
||||||
) ++ (
|
) ++ (
|
||||||
lib.optionals cfg.enableDataSupport [
|
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
|
# TODO add more formatters from https://github.com/mawww/kakoune/wiki/Format
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue