set js/ts format priority

This commit is contained in:
Thomas Ruoff
2025-06-04 08:08:23 +02:00
parent 3ba06cf1b9
commit fca58caaae

View File

@@ -6,9 +6,7 @@ return {
keys = {
{
'<leader>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' },
},
},
}