From e1d19b7e45f6e2c92044f1aa7f56523c36e30906 Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:39:25 +0200 Subject: [PATCH] Use faster prettierd instead of prettier --- .../nvim/lua/user/plugins/conform.lua | 20 +++++++++---------- .../nvim/lua/user/plugins/lsp/mason.lua | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/bootstrap/config_dirs/nvim/lua/user/plugins/conform.lua b/bootstrap/config_dirs/nvim/lua/user/plugins/conform.lua index 5796d09..b080f5f 100644 --- a/bootstrap/config_dirs/nvim/lua/user/plugins/conform.lua +++ b/bootstrap/config_dirs/nvim/lua/user/plugins/conform.lua @@ -9,20 +9,20 @@ return { conform.setup({ formatters_by_ft = { bash = { "beautysh" }, - css = { "prettier" }, - graphql = { "prettier" }, - html = { "prettier" }, - javascript = { "prettier" }, - javascriptreact = { "prettier" }, - json = { "prettier" }, + css = { "prettierd" }, + graphql = { "prettierd" }, + html = { "prettierd" }, + javascript = { "prettierd" }, + javascriptreact = { "prettierd" }, + json = { "prettierd" }, lua = { "stylua" }, - markdown = { "prettier" }, + markdown = { "prettierd" }, python = { "isort", "black" }, sh = { "beautysh" }, swift = { "swiftformat" }, - typescript = { "prettier" }, - typescriptreact = { "prettier" }, - yaml = { "prettier", "yamlfmt" }, + typescript = { "prettierd" }, + typescriptreact = { "prettierd" }, + yaml = { "prettierd", "yamlfmt" }, zsh = { "shfmt" }, }, -- formatters = { diff --git a/bootstrap/config_dirs/nvim/lua/user/plugins/lsp/mason.lua b/bootstrap/config_dirs/nvim/lua/user/plugins/lsp/mason.lua index c897a1f..1be4990 100644 --- a/bootstrap/config_dirs/nvim/lua/user/plugins/lsp/mason.lua +++ b/bootstrap/config_dirs/nvim/lua/user/plugins/lsp/mason.lua @@ -63,6 +63,7 @@ return { "jsonlint", -- json linter -- "luacheck", -- lua linter 🚨 currently issues during install "prettier", -- formatter for angular, css, flow, graphql, html, json, jsx, javascript, less, markdown, scss, typescript, vue, yaml + "prettierd", -- formatter for angular, css, flow, graphql, html, json, jsx, javascript, less, markdown, scss, typescript, vue, yaml "proselint", -- formatter for prose text "pylint", -- python linter "shellcheck", -- bash linter