diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-01-15 12:13:09 -0500 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-01-21 11:41:50 +0100 |
commit | fa4b02fa67e5d04e37de7c767f811d497a72f95e (patch) | |
tree | 27d8331ca6e5015ff21da8ad7b2c31eebb26bab5 /test/functional/api/extmark_spec.lua | |
parent | 8df7978fe31635ede12f6dae224e6a6c8f1ba882 (diff) | |
download | rneovim-fa4b02fa67e5d04e37de7c767f811d497a72f95e.tar.gz rneovim-fa4b02fa67e5d04e37de7c767f811d497a72f95e.tar.bz2 rneovim-fa4b02fa67e5d04e37de7c767f811d497a72f95e.zip |
feat(vim.version): add `vim.version.le` and `vim.version.ge`
- Problem: One cannot easily write something like, for example:
`version_current >= {0, 10, 0}`; writing like
`not vim.version.lt(version_current, {0, 10, 0})` is verbose.
- Solution: add {`le`,`ge`} in addition to {`lt`,`gt`}.
- Also improve typing on the operator methods: allow `string` as well.
- Update the example in `vim.version.range()` docs: `ge` in place of
`gt` better matches the semantics of `range:has`.
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
0 files changed, 0 insertions, 0 deletions