feat: Add support for Biome formatter
This commit is contained in:
parent
4422d9f41a
commit
a54964b04f
2 changed files with 18 additions and 1 deletions
|
@ -129,6 +129,7 @@ with final.pkgs.lib; let
|
|||
# Formatters
|
||||
shfmt
|
||||
stylua
|
||||
biome
|
||||
];
|
||||
in {
|
||||
# This is the neovim derivation returned by the overlay.
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue