aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2024-06-01 16:43:29 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2024-06-01 16:43:33 -0700
commitccbbeb7087f7ee41552ebc4bac50c346d5832803 (patch)
treecb7c54e143876361d273cbc23e4c4af817010fd0
parentb1285c7c24559688a9e02d3828d9b72f553b3549 (diff)
ci: use nvim-typecheck-action v2
-rw-r--r--.github/workflows/tests.yml2
-rw-r--r--lua/conform/runner.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 7e62300..4a94fab 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- - uses: stevearc/nvim-typecheck-action@v1
+ - uses: stevearc/nvim-typecheck-action@v2
with:
path: lua
diff --git a/lua/conform/runner.lua b/lua/conform/runner.lua
index fd99807..c59ae67 100644
--- a/lua/conform/runner.lua
+++ b/lua/conform/runner.lua
@@ -196,6 +196,7 @@ M.apply_format = function(bufnr, original_lines, new_lines, range, only_apply_ra
end
log.trace("Comparing lines %s and %s", original_lines, new_lines)
+ ---@diagnostic disable-next-line: missing-fields
local indices = vim.diff(original_text, new_text, {
result_type = "indices",
algorithm = "histogram",