diff options
-rw-r--r-- | .github/workflows/automation.yml | 15 | ||||
-rw-r--r-- | lua/conform/formatters/prettier.lua | 13 |
2 files changed, 15 insertions, 13 deletions
diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml new file mode 100644 index 0000000..ad3afed --- /dev/null +++ b/.github/workflows/automation.yml @@ -0,0 +1,15 @@ +name: Remove Label + +on: [issue_comment] + +jobs: + # Remove the "question" label when a new comment is added. + # This lets me ask a question, tag the issue with "question", and filter out all "question"-tagged + # issues in my "needs triage" filter. + remove_question: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: question diff --git a/lua/conform/formatters/prettier.lua b/lua/conform/formatters/prettier.lua index 5b00d7b..ea45ffb 100644 --- a/lua/conform/formatters/prettier.lua +++ b/lua/conform/formatters/prettier.lua @@ -1,16 +1,3 @@ -require("conform").setup({ - formatters = { - prettier = { - args = function(ctx) - if vim.endswith(ctx.filename, ".ejs") then - return { "--stdin-filepath", "$FILENAME", "--parser", "html" } - end - return { "--stdin-filepath", "$FILENAME" } - end, - }, - }, -}) - local util = require("conform.util") ---@type conform.FileFormatterConfig return { |