eslint_d instead of prettier if available

This commit is contained in:
markus.dieckmann 2025-05-27 11:52:52 +02:00
parent 118decfd8a
commit 19f8fcd06e

View File

@ -17,8 +17,8 @@ return {
-- You can customize some of the format options for the filetype (:help conform.format)
rust = { "rustfmt" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
javascript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,