Skip to content

Emphasize Customizability In Readme #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
feat: more formatters
  • Loading branch information
barrett-ruth committed Aug 11, 2023
commit bbbc3c010f0db4895321a21378b1caa05fe025ab
28 changes: 23 additions & 5 deletions lua/guard/tools/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,13 @@ M.cbfmt = {

M.shfmt = {
cmd = 'shfmt',
args = { '-filename' },
stdin = true,
fname = true
}

M.isort = {
cmd = 'isort',
args = { '-', '--stdout', '--filename' },
stdin = true,
fname = true
args = { '-' },
stdin = true
}

M.prettierd = {
Expand All @@ -96,4 +93,25 @@ M['sql-formatter'] = {
stdin = true
}

M.fish_indent = {
cmd = 'fish_indent',
stdin = true
}

M.swiftformat = {
cmd = 'swiftformat',
stdin = true
}

M.gofmt = {
cmd = 'gofmt',
stdin = true
}

M['google-java-format'] = {
cmd = 'google-java-format',
args = { '-' },
stdin = true
}

return M