aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/inspect.lua
diff options
context:
space:
mode:
authorJongwook Choi <wookayin@gmail.com>2024-01-15 12:13:09 -0500
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-21 11:41:50 +0100
commitfa4b02fa67e5d04e37de7c767f811d497a72f95e (patch)
tree27d8331ca6e5015ff21da8ad7b2c31eebb26bab5 /runtime/lua/vim/inspect.lua
parent8df7978fe31635ede12f6dae224e6a6c8f1ba882 (diff)
downloadrneovim-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 'runtime/lua/vim/inspect.lua')
0 files changed, 0 insertions, 0 deletions