From 8e6fa2062700d8c4816e8ecd95940805bedc245b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 18 Jan 2026 16:34:31 +0530 Subject: Add plugins directory linking --- autoload/formatter.kak | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'autoload/formatter.kak') diff --git a/autoload/formatter.kak b/autoload/formatter.kak index 6b8c126..0830164 100644 --- a/autoload/formatter.kak +++ b/autoload/formatter.kak @@ -17,8 +17,15 @@ hook global BufSetOption filetype=(?:javascript|typescript|jsx|tsx) %{ fi } } -define-command biome -docstring 'Format file on disk using biome' %{ - nop %sh{ npx biome check --fix --stdin-file-path=$kak_buffile } + +define-command biome-buffer -docstring 'Format buffer file on disk using biome' %{ + biome %val{buffile} +} + +define-command biome -params .. -docstring 'Format project using biome' %{ + info %sh{ + npx biome check --fix "$@" && echo "Success" || echo "Failed" + } } define-command apply-formatting -docstring 'Apply formatting with formatcmd or lsp' %{ -- cgit v1.3.1