fix(docs): delete duplicate tags

This commit is contained in:
Michael Lingelbach 2021-05-31 11:45:14 -07:00
parent 0866df4d6a
commit 638c29b7c9
2 changed files with 11 additions and 36 deletions

View File

@ -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

View File

@ -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.