diff options
author | Christian Clason <christian.clason@uni-due.de> | 2020-05-31 20:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 14:56:00 -0400 |
commit | 91e41c857622b61adcf84f6a6af87a3f5a4d65f5 (patch) | |
tree | 7c4e30a9354be6cad2864447d6dd526a0befcbe9 /runtime/doc | |
parent | ed815c61fdc3fa5a0873a3f9005fdf3c5c49e8df (diff) | |
download | rneovim-91e41c857622b61adcf84f6a6af87a3f5a4d65f5.tar.gz rneovim-91e41c857622b61adcf84f6a6af87a3f5a4d65f5.tar.bz2 rneovim-91e41c857622b61adcf84f6a6af87a3f5a4d65f5.zip |
lua: add vim.highlight.range (#12401)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 8 | ||||
-rw-r--r-- | runtime/doc/lua.txt | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 0c510c3bec..9deaf26983 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1042,14 +1042,6 @@ get_current_line_to_cursor() get_severity_highlight_name({severity}) TODO: Documentation - *vim.lsp.util.highlight_range()* -highlight_range({bufnr}, {ns}, {hiname}, {start}, {finish}) - TODO: Documentation - - *vim.lsp.util.highlight_region()* -highlight_region({ft}, {start}, {finish}) - TODO: Documentation - jump_to_location({location}) *vim.lsp.util.jump_to_location()* TODO: Documentation diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 19579a2a3c..7c1b0ee73b 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -713,6 +713,16 @@ vim.highlight.on_yank([{higroup}, {timeout}, {event}]) in milliseconds ({timeout}, default `500`), and the event structure that is fired ({event}, default `vim.v.event`). + +vim.highlight.range({bufnr}, {ns}, {higroup}, {start}, {finish}, {rtype}, {inclusive}) + *vim.highlight.range()* + Highlights the range between {start} and {finish} (tuples of {line,col}) + in buffer {bufnr} with the highlight group {higroup} using the namespace + {ns}. Optional arguments are the type of rangeĀ (characterwise, linewise, + or blockwise, see |setreg|; default to characterwise) and whether the + range is inclusive (default false). + + ------------------------------------------------------------------------------ VIM.REGEX *lua-regex* |