aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-02-24 15:37:24 -0800
committerGitHub <noreply@github.com>2021-02-24 15:37:24 -0800
commite55ded00cfb8432a7bc8af40b477aaf0cba70405 (patch)
treeeecd8b65f939e807fa4d70360cd2f2875c819404
parent7d82aaa6f5a6403f3c4e330dcaba9bb36ecbef28 (diff)
parentb5292a047d0213044e3110c68d6daf64711aab55 (diff)
downloadrneovim-e55ded00cfb8432a7bc8af40b477aaf0cba70405.tar.gz
rneovim-e55ded00cfb8432a7bc8af40b477aaf0cba70405.tar.bz2
rneovim-e55ded00cfb8432a7bc8af40b477aaf0cba70405.zip
Merge pull request #14008 from mfussenegger/docs-update
Update lsp and api docs with gen_vimdoc changes
-rw-r--r--runtime/doc/api.txt7
-rw-r--r--runtime/doc/lsp.txt11
2 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 8ae5f415d4..fdc41af1d5 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2195,6 +2195,13 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts})
• hl_group : name of the highlight group used to
highlight this mark.
• virt_text : virtual text to link to this mark.
+ • virt_text_pos : positioning of virtual text.
+ Possible values:
+ • "eol": right after eol character (default)
+ • "overlay": display over the specified
+ column, without shifting the underlying
+ text.
+
• ephemeral : for use with
|nvim_set_decoration_provider| callbacks. The
mark will only be used for the current redraw
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index e4350576a4..d2d88fb9ba 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1318,6 +1318,17 @@ on_publish_diagnostics({_}, {_}, {params}, {client_id}, {_}, {config})
• Update diagnostics in InsertMode or wait
until InsertLeave
+reset({client_id}, {buffer_client_map}) *vim.lsp.diagnostic.reset()*
+ Clear diagnotics and diagnostic cache
+
+ Handles saving diagnostics from multiple clients in the same
+ buffer.
+
+ Parameters: ~
+ {client_id} number
+ {buffer_client_map} table map of buffers to active
+ clients
+
save({diagnostics}, {bufnr}, {client_id}) *vim.lsp.diagnostic.save()*
Save diagnostics to the current buffer.