feat(nvim): more formatters

This commit is contained in:
Tine 2024-02-29 12:16:12 +01:00
parent 38b4cdc78e
commit 55d9e056dc
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -188,6 +188,20 @@ require("formatter").setup({
graphql = { graphql = {
require("formatter.filetypes.graphql").prettier, require("formatter.filetypes.graphql").prettier,
}, },
html = {
require("formatter.filetypes.html").prettier,
},
template = {
function()
local prettierForGoTemplate = require("formatter.defaults.prettier")()
table.insert(prettierForGoTemplate.args, "--plugin")
table.insert(prettierForGoTemplate.args, "prettier-plugin-go-template")
return prettierForGoTemplate
end,
},
css = {
require("formatter.filetypes.css").prettier,
},
rust = { rust = {
require("formatter.filetypes.rust").rustfmt, require("formatter.filetypes.rust").rustfmt,
}, },