summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/lua/hl_spec.lua
AgeCommit message (Collapse)AuthorFiles
2025-04-05fix(vim.hl): nvim_buf_del_extmark on invalid buffer #33331phanium1
Problem: nvim_buf_del_extmark error if buffer is destroyed before timer stops Solution: check nvim_buf_is_valid.
2025-04-04test(lua/hl_spec): fix hang on exit with ASAN (#33298)zeertzjq1
2025-04-03feat(vim.hl): allow multiple timed highlights simultaneously #33283Siddhant Agarwal1
Problem: Currently vim.hl.range only allows one timed highlight. Creating another one, removes the old one. Solution: vim.hl.range now returns a timer and a function. The timer keeps track of how much time is left in the highlight and the function allows you to clear it, letting the user decide what to do with old highlights.
2025-03-13fix(lua): vim.hl.on_yank highlights wrong region with yi' (#32850)phanium1
Problem: yi' don't highlight last character since https://github.com/neovim/neovim/commit/8ce504820af04194a41acbe1f4c61cf12bd5feb5. Solution: Always use `opts.inclusive=true`, since calculation of `"]` (`b_op_end`) have taken `inclusive` into account.
2025-02-18test(lua/hl_spec): fix hang on exit with ASAN (#32508)zeertzjq1
2025-02-17test(lua/hl_spec): reduce flakiness (#32489)zeertzjq1
2025-01-23test(lua/hl_spec): set timeout for transient state (#32169)zeertzjq1
2025-01-22feat(lua): vim.hl.range() "timeout" #32012Siddhant Agarwal1
Problem: `vim.hl.on_yank()` has a "timeout" behavior but this is not available for `vim.hl.range()`. Solution: Add `timeout` arg to `vim.hl.range()`.
2025-01-14refactor: use nvim.foo.bar format for namespacesMaria José Solano1
2024-11-14fix(tests): needing two calls to setup a screen is cringebfredl1
Before calling "attach" a screen object is just a dummy container for (row, col) values whose purpose is to be sent as part of the "attach" function call anyway. Just create the screen in an attached state directly. Keep the complete (row, col, options) config together. It is still completely valid to later detach and re-attach as needed, including to another session.
2024-10-21refactor: rename vim.highlight => vim.hlJustin M. Keyes1
Problem: - `vim.highlight` module does not follow `:help dev-name-common`, which documents the name for "highlight" as "hl". - Shorter names are usually preferred. Solution: Rename `vim.highlight` to `vim.hl`. This is not a breaking change until 2.0 (or maybe never).