kak: add formatter for tsx and jsx

This commit is contained in:
Leonardo Eugênio 2025-06-04 00:18:23 -03:00
parent 72e4e38fe9
commit adc0765c18
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}" set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
} }
hook global BufCreate .*\.jsx %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.ts %{ hook global BufCreate .*\.ts %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}" set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
} }
hook global BufCreate .*\.tsx %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
}
hook global BufCreate .*\.scss %{ hook global BufCreate .*\.scss %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}" set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
} }