kak: add c formatter

This commit is contained in:
lelgenio 2021-10-22 23:55:04 -03:00
parent 2764ccc54f
commit 83eb1f1ede
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ try %{
hook global WinSetOption filetype=sh %{
set buffer formatcmd 'shfmt -s -ci -i "{{@@ indent_width @@}}"'
}
hook global WinSetOption filetype=c %{
set buffer formatcmd 'clang-format'
}
hook global BufCreate .*\.html %{
set buffer formatcmd 'prettier --parser html'