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)
|
||||
if pcall(vim.treesitter.start, ev.buf) 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()"
|
||||
end
|
||||
end
|
||||
@@ -76,6 +76,11 @@ Config.now_if_args(function()
|
||||
formatters_by_ft = {
|
||||
go = { "gofumpt", "goimports" },
|
||||
php = { "php_cs_fixer" },
|
||||
json = { "jq" },
|
||||
javascript = { "biome" },
|
||||
typescript = { "biome" },
|
||||
javascriptreact = { "biome" },
|
||||
typescriptreact = { "biome" },
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user