feat(vim.version): make tostring() return human-readable version range

Problem: `tostring()` applied to version range doesn't return
human-readable text with information about the range.

Solution: Add `__tostring()` method.
This commit is contained in:
Evgeni Chasnovski
2025-06-30 16:08:35 +03:00
parent 561021bacd
commit aeb8bca12d
3 changed files with 22 additions and 3 deletions

View File

@@ -199,6 +199,7 @@ LUA
• |vim.hl.range()| now allows multiple timed highlights.
• |vim.tbl_extend()| and |vim.tbl_deep_extend()| now accept a function behavior argument.
• |vim.fs.root()| can define "equal priority" via nested lists.
• |vim.version.range()| output can be converted to human-readable string with |tostring()|.
OPTIONS