diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-25 20:37:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 20:37:33 +0800 |
commit | bdb81afab3e5c43a33267666c2689feb284f6b52 (patch) | |
tree | 5641b43605c4cdacbed97ec4e1b3b09e635f1c0b /runtime/doc/lua.txt | |
parent | 75f6ee5b26c4a4fc02b69646e0317fd8e802c193 (diff) | |
download | rneovim-bdb81afab3e5c43a33267666c2689feb284f6b52.tar.gz rneovim-bdb81afab3e5c43a33267666c2689feb284f6b52.tar.bz2 rneovim-bdb81afab3e5c43a33267666c2689feb284f6b52.zip |
refactor(lua): rewrite vim.highlight.range() (#28986)
- Use getregionpos().
- Use a single extmark for non-blockwise selection.
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 3d8453c5a2..64a3014388 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -646,8 +646,8 @@ vim.highlight.range({bufnr}, {ns}, {higroup}, {start}, {finish}, {opts}) • {finish} (`integer[]|string`) End of region as a (line, column) tuple or string accepted by |getpos()| • {opts} (`table?`) A table with the following fields: - • {regtype}? (`string`, default: `'charwise'`) Type of - range. See |setreg()| + • {regtype}? (`string`, default: `'v'` i.e. charwise) Type + of range. See |getregtype()| • {inclusive}? (`boolean`, default: `false`) Indicates whether the range is end-inclusive • {priority}? (`integer`, default: |