kakoune: add json and yaml formatter
This commit is contained in:
		
							parent
							
								
									921413f545
								
							
						
					
					
						commit
						9239cbef77
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -15,6 +15,14 @@ hook global WinSetOption filetype=nix %{
 | 
				
			||||||
    set buffer formatcmd 'nixfmt'
 | 
					    set buffer formatcmd 'nixfmt'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					hook global BufCreate .*\.json %{
 | 
				
			||||||
 | 
					    set buffer formatcmd 'prettier --parser json'
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					hook global BufCreate .*\.ya?ml %{
 | 
				
			||||||
 | 
					    set buffer formatcmd 'prettier --parser yaml'
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
hook global BufCreate .*\.html %{
 | 
					hook global BufCreate .*\.html %{
 | 
				
			||||||
    set buffer formatcmd 'prettier --parser html'
 | 
					    set buffer formatcmd 'prettier --parser html'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue