aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzer_spec.lua
diff options
context:
space:
mode:
authorGrolaf <75337003+Grolaf@users.noreply.github.com>2024-07-16 06:07:55 +0200
committerGitHub <noreply@github.com>2024-07-15 21:07:55 -0700
commit1d1362b0261d06a0b91872e916c172320bbb988a (patch)
tree599c2cfe050dafb4e824fc83ab505613c0c80517 /tests/fuzzer_spec.lua
parentcc1ba956b61543641ddeeb7694c7cdaa33cd157c (diff)
feat: add undojoin as a format option (#488)
* feat: add new format option: undojoin This option allow user to automatically perform undojoin command before formatting. This is useful if the user uses an autosave plugin + format on save, because in case of undo, it will undo the last change AND the formatting. Without this option, it will only undo the formatting. * fix: passed linting * fix: apply undojoin for LSP formatting * doc: fix type annotations for apply_format * doc: regenerate documentation --------- Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
Diffstat (limited to 'tests/fuzzer_spec.lua')
-rw-r--r--tests/fuzzer_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzzer_spec.lua b/tests/fuzzer_spec.lua
index c47f1e5..b110f75 100644
--- a/tests/fuzzer_spec.lua
+++ b/tests/fuzzer_spec.lua
@@ -25,7 +25,7 @@ describe("fuzzer", function()
vim.api.nvim_set_current_buf(bufnr)
vim.api.nvim_buf_set_lines(bufnr, 0, -1, true, buf_content)
vim.bo[bufnr].modified = false
- runner.apply_format(0, buf_content, expected, nil, false)
+ runner.apply_format(0, buf_content, expected, nil, false, false, false)
assert.are.same(expected, vim.api.nvim_buf_get_lines(0, 0, -1, false))
end