kakoune: fix prettier file path handling

This commit is contained in:
lelgenio 2025-09-16 13:30:31 -03:00
parent 2fa47a81a7
commit 7a95706af2

View file

@ -16,15 +16,15 @@ hook global WinSetOption filetype=nix %{
}
hook global BufCreate .*\.json %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
hook global BufCreate .*\.ya?ml %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
hook global BufCreate .*\.html %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
hook global BufCreate .*\.component\.html %{
@ -43,23 +43,23 @@ hook global BufCreate .*\.php %{
}
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}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
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}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
hook global BufCreate .*\.scss %{
set buffer formatcmd "prettier --stdin-filepath=%val{buffile}"
set buffer formatcmd "prettier --stdin-filepath='%val{buffile}'"
}
hook global BufCreate .*\.vue %{