From 1dd03db7fcc5b22aadedffc4b409985317b3915b Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 10 May 2024 00:58:55 -0700 Subject: [PATCH] change haskell formatter to fourmolu --- lua/plugins/formatting.lua | 56 +++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lua/plugins/formatting.lua b/lua/plugins/formatting.lua index 4b0acc2..043e68b 100644 --- a/lua/plugins/formatting.lua +++ b/lua/plugins/formatting.lua @@ -10,33 +10,33 @@ return { dependencies = { 'nvim-treesitter/nvim-treesitter' }, ft = { 'html', 'svelte', 'astro', 'vue', 'typescriptreact', 'php', 'blade' }, }, -{ - "stevearc/conform.nvim", - optional = true, - opts = { - formatters_by_ft = { - ["javascript"] = { "prettier" }, - ["javascriptreact"] = { "prettier" }, - ["typescript"] = { "prettier" }, - ["typescriptreact"] = { "prettier" }, - ["vue"] = { "prettier" }, - ["css"] = { "prettier" }, - ["scss"] = { "prettier" }, - ["less"] = { "prettier" }, - ["html"] = { "prettier" }, - ["json"] = { "prettier" }, - ["jsonc"] = { "prettier" }, - ["yaml"] = { "prettier" }, - ["markdown"] = { "prettier" }, - ["markdown.mdx"] = { "prettier" }, - ["graphql"] = { "prettier" }, - ["handlebars"] = { "prettier" }, - ["toml"] = {"taplo"}, - ["tex"] = {"latexindent"}, - ["haskell"] = {"ormolu"}, - ["nix"] = {"nixpkgs-fmt"}, - ["lua"] = {"stylua"}, + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + ["javascript"] = { "prettier" }, + ["javascriptreact"] = { "prettier" }, + ["typescript"] = { "prettier" }, + ["typescriptreact"] = { "prettier" }, + ["vue"] = { "prettier" }, + ["css"] = { "prettier" }, + ["scss"] = { "prettier" }, + ["less"] = { "prettier" }, + ["html"] = { "prettier" }, + ["json"] = { "prettier" }, + ["jsonc"] = { "prettier" }, + ["yaml"] = { "prettier" }, + ["markdown"] = { "prettier" }, + ["markdown.mdx"] = { "prettier" }, + ["graphql"] = { "prettier" }, + ["handlebars"] = { "prettier" }, + ["toml"] = {"taplo"}, + ["tex"] = {"latexindent"}, + ["haskell"] = {"fourmolu"}, + ["nix"] = {"nixpkgs-fmt"}, + ["lua"] = {"stylua"}, + }, }, - }, -} + } }