diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-11 21:48:56 +0200 |
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-07-11 21:48:56 +0200 |
| commit | a857f247d9a71b88a4f0dbcfa95e3679e8456e70 (patch) | |
| tree | 846ddcd8117be1505a970e3638fc65d0ec954a2e /config/essentials/vis/format.lua | |
| parent | 75196520b3d6a0e60db1d03a64aaa0655cc4f202 (diff) | |
| parent | 6251d6ba1054cd79387f0f88ce25d2f4bc8b78c4 (diff) | |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'config/essentials/vis/format.lua')
| -rw-r--r-- | config/essentials/vis/format.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/config/essentials/vis/format.lua b/config/essentials/vis/format.lua index 67613a6..eefdc77 100644 --- a/config/essentials/vis/format.lua +++ b/config/essentials/vis/format.lua @@ -63,15 +63,15 @@ M.formatters = { end, }, luaformatter = M.stdio_formatter("lua-format"), - markdown = M.stdio_formatter(function(win) - if win.options and M.wrapwidth ~= 0 then - return "prettier --parser markdown --prose-wrap always " - .. ("--print-width " .. (M.wrapwidth - 1) .. " ") - .. M.with_filename(win, "--stdin-filepath ") - else - return "prettier --parser markdown " .. M.with_filename(win, "--stdin-filepath ") - end - end, { ranged = false }), + -- markdown = M.stdio_formatter(function(win) + -- if win.options and M.wrapwidth ~= 0 then + -- return "prettier --parser markdown --prose-wrap always " + -- .. ("--print-width " .. (M.wrapwidth - 1) .. " ") + -- .. M.with_filename(win, "--stdin-filepath ") + -- else + -- return "prettier --parser markdown " .. M.with_filename(win, "--stdin-filepath ") + -- end + -- end, { ranged = false }), powershell = M.stdio_formatter([[ "$( (command -v powershell.exe || command -v pwsh) 2>/dev/null )" -c ' Invoke-Formatter -ScriptDefinition ` |
