Skip to content

more flexibility for autocmd control #41

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

Merged
merged 17 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format: add fnlfmt
  • Loading branch information
iujakchu committed Aug 2, 2023
commit d08230df1a2c45264fb253cc0b19b6a3cb586941
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ vim.keymap.set({'n','v'}, '<cmd>GuardFmt<CR>')
- `clang-format`
- `prettier`
- `rustfmt`
- `fnlfmt`
- `stylua`
- `golines`
- `black`
Expand Down
6 changes: 6 additions & 0 deletions lua/guard/tools/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ M.black = {
stdin = true,
}

M.fnlfmt = {
cmd = 'fnlfmt',
args = { '-' },
stdin = true,
}

M.mixformat = {
cmd = 'mix',
args = {'format', '-', '--stdin-filename'},
Expand Down