diff --git a/user/kakoune/filetypes.kak b/user/kakoune/filetypes.kak index b9d19f5..060c73f 100644 --- a/user/kakoune/filetypes.kak +++ b/user/kakoune/filetypes.kak @@ -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 %{