kakoune: fix prettier file path handling
This commit is contained in:
		
							parent
							
								
									2fa47a81a7
								
							
						
					
					
						commit
						7a95706af2
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -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 %{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue