kak: add formatter for tsx and jsx
This commit is contained in:
parent
72e4e38fe9
commit
adc0765c18
1 changed files with 8 additions and 0 deletions
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue