kak: add formatter for tsx and jsx

This commit is contained in:
Leonardo Eugênio 2025-06-04 00:18:23 -03:00
parent 22dc422b63
commit 51fd376c1b
No known key found for this signature in database
GPG key ID: 2F8F21CE8721456B

View file

@ -46,10 +46,18 @@ hook global BufCreate .*\.js %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.jsx %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.ts %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.tsx %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.scss %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}