From 7a95706af2ed2e724dc0c7a7b2822254d112c93a Mon Sep 17 00:00:00 2001 From: lelgenio Date: Tue, 16 Sep 2025 13:30:31 -0300 Subject: [PATCH] kakoune: fix prettier file path handling --- user/kakoune/filetypes.kak | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 %{