Public Access
format markdown
This commit is contained in:
@@ -20,6 +20,14 @@ require("conform").setup({
|
|||||||
h = { filter = function() return false end }
|
h = { filter = function() return false end }
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
|
prettier = {
|
||||||
|
prepend_args = function(_, ctx)
|
||||||
|
if vim.bo[ctx.buf].filetype == "markdown" then
|
||||||
|
return { "--prose-wrap=always", "--print-width=80" }
|
||||||
|
end
|
||||||
|
return {}
|
||||||
|
end,
|
||||||
|
},
|
||||||
dart_format = {
|
dart_format = {
|
||||||
command = function(_, ctx)
|
command = function(_, ctx)
|
||||||
return dart.executable(ctx.filename)
|
return dart.executable(ctx.filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user