change haskell formatter to fourmolu

This commit is contained in:
Youwen Wu 2024-05-10 00:58:55 -07:00
parent ebbb48468d
commit 1dd03db7fc
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -10,33 +10,33 @@ return {
dependencies = { 'nvim-treesitter/nvim-treesitter' }, dependencies = { 'nvim-treesitter/nvim-treesitter' },
ft = { 'html', 'svelte', 'astro', 'vue', 'typescriptreact', 'php', 'blade' }, ft = { 'html', 'svelte', 'astro', 'vue', 'typescriptreact', 'php', 'blade' },
}, },
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
optional = true, optional = true,
opts = { opts = {
formatters_by_ft = { formatters_by_ft = {
["javascript"] = { "prettier" }, ["javascript"] = { "prettier" },
["javascriptreact"] = { "prettier" }, ["javascriptreact"] = { "prettier" },
["typescript"] = { "prettier" }, ["typescript"] = { "prettier" },
["typescriptreact"] = { "prettier" }, ["typescriptreact"] = { "prettier" },
["vue"] = { "prettier" }, ["vue"] = { "prettier" },
["css"] = { "prettier" }, ["css"] = { "prettier" },
["scss"] = { "prettier" }, ["scss"] = { "prettier" },
["less"] = { "prettier" }, ["less"] = { "prettier" },
["html"] = { "prettier" }, ["html"] = { "prettier" },
["json"] = { "prettier" }, ["json"] = { "prettier" },
["jsonc"] = { "prettier" }, ["jsonc"] = { "prettier" },
["yaml"] = { "prettier" }, ["yaml"] = { "prettier" },
["markdown"] = { "prettier" }, ["markdown"] = { "prettier" },
["markdown.mdx"] = { "prettier" }, ["markdown.mdx"] = { "prettier" },
["graphql"] = { "prettier" }, ["graphql"] = { "prettier" },
["handlebars"] = { "prettier" }, ["handlebars"] = { "prettier" },
["toml"] = {"taplo"}, ["toml"] = {"taplo"},
["tex"] = {"latexindent"}, ["tex"] = {"latexindent"},
["haskell"] = {"ormolu"}, ["haskell"] = {"fourmolu"},
["nix"] = {"nixpkgs-fmt"}, ["nix"] = {"nixpkgs-fmt"},
["lua"] = {"stylua"}, ["lua"] = {"stylua"},
},
}, },
}, }
}
} }