From fca58caaae8e9ed2b16bf54eaae10eb8fc6fbb2d Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 4 Jun 2025 08:08:23 +0200 Subject: [PATCH] set js/ts format priority --- lua/plugins/format.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/plugins/format.lua b/lua/plugins/format.lua index c331951..15e4fbf 100644 --- a/lua/plugins/format.lua +++ b/lua/plugins/format.lua @@ -6,9 +6,7 @@ return { keys = { { 'f', - function() - require('conform').format { async = true, lsp_format = 'fallback' } - end, + function() require('conform').format { async = true, lsp_format = 'fallback' } end, mode = '', desc = '[F]ormat buffer', }, @@ -35,7 +33,10 @@ return { -- python = { "isort", "black" }, -- -- You can use 'stop_after_first' to run the first available formatter from the list - -- javascript = { "prettierd", "prettier", stop_after_first = true }, + javascript = { 'eslint_d', 'prettierd', 'prettier' }, + javascriptreact = { 'eslint_d', 'prettierd', 'prettier' }, + typescript = { 'eslint_d', 'prettierd', 'prettier' }, + typescriptreact = { 'eslint_d', 'prettierd', 'prettier' }, }, }, }