aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/undotree_spec.lua
Commit message (Collapse)AuthorAge
* test(harness): migrate away from magic globalsJustin M. Keyes2026-07-21
| | | | | | | | | | | | | | | | | | | | | Problem: The magic globals `it`, `describe`, etc., are more trouble than they are worth. - Hooking into `after_each` requires `getfenv()` hacks. - They confuse luals/emmylua, because the top-level `.luarc.json` isn't merged with `test/.luarc.json` (apparently a luals limitation?) - They totally defeat discoverability because the user just has to "know" about the various magic symbols. So they harm DX, which means they serve no purpose at all. Solution: - Expose the test API from `testutil`, so tests can call `t.it()`, `t.describe()`, etc., in the conventional way. - Drop `getfenv()` hacks. - Drop the `setfenv()` injection in `load_chunk`. - Drop `test/_meta.lua`.
* test(undotree): flaky tests #40218altermo2026-06-13
| | | | | | | | | Problem: After 400f24739728 the undotree test became flaky. It seems to be caused by some kind of race condition where an entry in the undotree is not added when a change in the buffer happens (adding a bunch of sleep around buffer-change operations seems to fix the issue). Solution: Disable autoread plugin in undotree test.
* fix(undotree): sync scroll pos with undo #36117phanium2025-10-10
| | | | | | Problem: when undo in buffer, undotree window is not updated to position of correct node Solution: schedule nvim_win_set_cursor
* feat(runtime): undotree #35627altermo2025-10-07
Problem No builtin way to visualize and navigate the undo-tree. Solution Include an "opt" plugin.