feat: Add support for Biome formatter

This commit is contained in:
punkfairie 2025-01-03 20:17:19 -08:00
parent 4422d9f41a
commit a54964b04f
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
2 changed files with 18 additions and 1 deletions

View file

@ -129,6 +129,7 @@ with final.pkgs.lib; let
# Formatters
shfmt
stylua
biome
];
in {
# This is the neovim derivation returned by the overlay.

View file

@ -31,10 +31,26 @@ return {
return { timeout_ms = 3000, lsp_format = 'fallback' }
end,
formatters_by_ft = {
lua = { 'stylua' },
css = { 'biome' },
fish = { 'fish_indent' },
graphql = { 'biome' },
javascript = { 'biome' },
javascriptreact = { 'biome' },
json = { 'biome' },
jsonc = { 'biome' },
lua = { 'stylua' },
sh = { 'shfmt' },
typescript = { 'biome' },
typescriptreact = { 'biome' },
vue = { 'biome' },
},
formatters = {
biome = {
require_cwd = true,
},
},
})