Skip to content

Commit

Permalink
♻️refactor(reformat-gherkin): Also kick-in for the gherkin filetype…
Browse files Browse the repository at this point in the history
… now.
  • Loading branch information
Zeioth committed May 10, 2024
1 parent aae98aa commit 6234e14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3362,7 +3362,7 @@ local sources = { null_ls.builtins.formatting.reformat_gherkin }

#### Defaults

- Filetypes: `{ "cucumber" }`
- Filetypes: `{ "cucumber", "gherkin" }`
- Method: `formatting`
- Command: `reformat-gherkin`
- Args: `{ "$FILENAME" }`
Expand Down
3 changes: 2 additions & 1 deletion doc/builtins.json
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,8 @@
},
"reformat_gherkin": {
"filetypes": [
"cucumber"
"cucumber",
"gherkin"
]
},
"rego": {
Expand Down
2 changes: 1 addition & 1 deletion lua/null-ls/builtins/formatting/reformat_gherkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ return h.make_builtin({
description = "Formatter for Gherkin language.",
},
method = FORMATTING,
filetypes = { "cucumber" },
filetypes = { "cucumber", "gherkin" },
generator_opts = {
command = "reformat-gherkin",
args = { "$FILENAME" },
Expand Down

0 comments on commit 6234e14

Please sign in to comment.