This commit is contained in:
foozzi 2024-09-07 11:13:28 +02:00
parent e33f5ce558
commit 54d04ae856
6 changed files with 40 additions and 16 deletions

View file

@ -1,6 +1,19 @@
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" },
-- stdin = true,
-- options = {
-- ext_parsers = {
-- jrnl = { "markdown" },
-- },
-- },
},
},
icon = "", --'▎',
formatters_by_ft = {
lua = { "stylua" },
@ -11,7 +24,8 @@ return {
typescriptreact = { "biome" },
json = { "biome" },
sh = { "shfmt" },
markdown = { "prettier" },
markdown = { "prettier_markdown" },
jrnl = { "prettier_markdown" },
["*"] = { "trim_whitespace", "codespell" },
},
format_on_save = {