feat(init): add HTML support in formatter configuration

This commit introduces support for formatting HTML by adding 'prettier' to the formatter configuration. This enhancement allows for consistent styling across different file types, improving the coding process.
This commit is contained in:
OdysseusOperator 2025-03-28 13:51:33 +01:00
parent 1a6c63949b
commit 21117f7f1e
1 changed files with 1 additions and 0 deletions

View File

@ -789,6 +789,7 @@ require('lazy').setup({
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
python = { 'ruff_format', 'ruff_organize_imports' }, python = { 'ruff_format', 'ruff_organize_imports' },
json = { 'prettier' }, json = { 'prettier' },
html = { 'prettier' },
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
javascript = { 'prettierd', 'prettier', stop_after_first = true }, javascript = { 'prettierd', 'prettier', stop_after_first = true },
yaml = { 'prettierd', 'prettier', stop_after_first = true }, yaml = { 'prettierd', 'prettier', stop_after_first = true },