diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-05-31 11:45:14 -0700 |
---|---|---|
committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-05-31 11:51:02 -0700 |
commit | 638c29b7c960bbda571e60718c2a646ae286a03e (patch) | |
tree | 55018765a147e9ac9ffa3bdcd90dac5b182f2168 | |
parent | 0866df4d6a2d0b251b0061601c0e50edb2ecd2ea (diff) | |
download | rneovim-638c29b7c960bbda571e60718c2a646ae286a03e.tar.gz rneovim-638c29b7c960bbda571e60718c2a646ae286a03e.tar.bz2 rneovim-638c29b7c960bbda571e60718c2a646ae286a03e.zip |
fix(docs): delete duplicate tags
-rw-r--r-- | runtime/doc/lsp.txt | 11 | ||||
-rw-r--r-- | runtime/doc/lua.txt | 36 |
2 files changed, 11 insertions, 36 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index c52012ac00..d5e8db4dd7 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1625,6 +1625,9 @@ buf_highlight_references({bufnr}, {references}) {references} List of `DocumentHighlight` objects to highlight +buf_lines({bufnr}) *vim.lsp.util.buf_lines()* + TODO: Documentation + character_offset({buf}, {row}, {col}) *vim.lsp.util.character_offset()* Returns the UTF-32 and UTF-16 offsets for a position in a certain buffer. @@ -1747,6 +1750,14 @@ get_line({uri}, {row}) *vim.lsp.util.get_line()* Return: ~ string the line at row in filename +get_lines({uri}, {rows}) *vim.lsp.util.get_lines()* + Parameters: ~ + {uri} string uri of the resource to get the lines from + {rows} number[] zero-indexed line numbers + + Return: ~ + table<number string> a table mapping rows to lines + get_progress_messages() *vim.lsp.util.get_progress_messages()* TODO: Documentation diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 03056a603f..05404a2e35 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -650,42 +650,6 @@ vim.empty_dict() *vim.empty_dict()* Note: if numeric keys are added to the table, the metatable will be ignored and the dict converted to a list/array anyway. -vim.region({bufnr}, {pos1}, {pos2}, {type}, {inclusive}) *vim.region()* - Converts a selection specified by the buffer ({bufnr}), starting - position ({pos1}, a zero-indexed pair `{line1,column1}`), ending - position ({pos2}, same format as {pos1}), the type of the register - for the selection ({type}, see |regtype|), and a boolean indicating - whether the selection is inclusive or not, into a zero-indexed table - of linewise selections of the form `{linenr = {startcol, endcol}}` . - - *vim.register_keystroke_callback()* -vim.register_keystroke_callback({fn}, {ns_id}) - Register a lua {fn} with an {ns_id} to be run after every keystroke. - - Parameters: ~ - {fn}: (function): Function to call on keystroke. - It should take one argument, which is a string. - The string will contain the literal keys typed. - See |i_CTRL-V| - - If {fn} is `nil`, it removes the callback for the - associated {ns_id}. - - {ns_id}: (number) Namespace ID. If not passed or 0, will generate - and return a new namespace ID from |nvim_create_namespace()| - - Return: ~ - (number) Namespace ID associated with {fn} - - NOTE: {fn} will be automatically removed if an error occurs while - calling. This is to prevent the annoying situation of every keystroke - erroring while trying to remove a broken callback. - - NOTE: {fn} will receive the keystrokes after mappings have been - evaluated - - NOTE: {fn} will *NOT* be cleared from |nvim_buf_clear_namespace()| - vim.rpcnotify({channel}, {method}[, {args}...]) *vim.rpcnotify()* Sends {event} to {channel} via |RPC| and returns immediately. If {channel} is 0, the event is broadcast to all channels. |