fix: add biome back for typescript and jq for json
This commit is contained in:
@@ -29,7 +29,7 @@ Config.now_if_args(function()
|
|||||||
Config.autocmd('FileType', filetypes, function(ev)
|
Config.autocmd('FileType', filetypes, function(ev)
|
||||||
if pcall(vim.treesitter.start, ev.buf) then
|
if pcall(vim.treesitter.start, ev.buf) then
|
||||||
if vim.bo[ev.buf].filetype == 'php' then
|
if vim.bo[ev.buf].filetype == 'php' then
|
||||||
-- fixes broken indentation on `o` in php buffers
|
-- Fixes broken indentation on `o` in php buffers
|
||||||
vim.bo[ev.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
vim.bo[ev.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -76,6 +76,11 @@ Config.now_if_args(function()
|
|||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
go = { "gofumpt", "goimports" },
|
go = { "gofumpt", "goimports" },
|
||||||
php = { "php_cs_fixer" },
|
php = { "php_cs_fixer" },
|
||||||
|
json = { "jq" },
|
||||||
|
javascript = { "biome" },
|
||||||
|
typescript = { "biome" },
|
||||||
|
javascriptreact = { "biome" },
|
||||||
|
typescriptreact = { "biome" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user