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"}, + }, }, - }, -} + } }