202412301735554458
This commit is contained in:
parent
681f02385c
commit
05c0992aaa
7 changed files with 48 additions and 38 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue