summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/hl.lua
AgeCommit message (Collapse)AuthorFiles
2025-08-28refactor(lua): consistent use of local aliasesChristian Clason1
2025-06-06fix: type fixesLewis Russell1
Type fixes caught by emmylua
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-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-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-10-21feat(vim.validate): improve fast form and deprecate spec formLewis Russell1
Problem: `vim.validate()` takes two forms when it only needs one. Solution: - Teach the fast form all the features of the spec form. - Deprecate the spec form. - General optimizations for both forms. - Add a `message` argument which can be used alongside or in place of the `optional` argument.
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).