202412301735554458

This commit is contained in:
fz0x1 2024-12-30 11:27:38 +01:00
parent 681f02385c
commit 05c0992aaa
7 changed files with 48 additions and 38 deletions

View file

@ -2,25 +2,6 @@ return {
"stevearc/conform.nvim",
opts = {
log_level = vim.log.levels.DEBUG,
formatters = {
prettier_markdown = {
command = "prettier",
args = {
"--stdin-filepath",
"$FILENAME",
"--config",
os.getenv("HOME") .. "/.prettierrc.yaml",
"--parser",
"markdown",
},
-- stdin = true,
-- options = {
-- ext_parsers = {
-- jrnl = { "markdown" },
-- },
-- },
},
},
icon = "", --'▎',
formatters_by_ft = {
lua = { "stylua" },
@ -31,8 +12,7 @@ return {
typescriptreact = { "biome" },
json = { "biome" },
sh = { "shfmt" },
markdown = { "prettier_markdown" },
jrnl = { "prettier_markdown" },
markdown = { "prettier" },
["*"] = { "trim_whitespace", "codespell" },
},
format_on_save = {