20240907
This commit is contained in:
parent
e33f5ce558
commit
54d04ae856
6 changed files with 40 additions and 16 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue