diff options
author | Gregory Anders <greg@gpanders.com> | 2021-09-20 15:32:14 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-09-21 18:54:28 -0600 |
commit | bc652f148f6bb03511e36a0d9c3e383bb22abcfa (patch) | |
tree | 0b43a64610da654a2de942a418a10e265ead5868 /runtime/doc/diagnostic.txt | |
parent | d43151ea0bb194f7463cc8762919cd38546973c2 (diff) | |
download | rneovim-bc652f148f6bb03511e36a0d9c3e383bb22abcfa.tar.gz rneovim-bc652f148f6bb03511e36a0d9c3e383bb22abcfa.tar.bz2 rneovim-bc652f148f6bb03511e36a0d9c3e383bb22abcfa.zip |
refactor(diagnostic): remove get_virt_text_chunks()
This function isn't compatible with including diagnostic sources when
"source" is "if_many" since it only has access to diagnostics for a
single line. Rather than having an inconsistent or incomplete interface,
make this function private. It is still exported as part of the module
for backward compatibility with vim.lsp.diagnostics, but it can
eventually be made into a local function.
Diffstat (limited to 'runtime/doc/diagnostic.txt')
-rw-r--r-- | runtime/doc/diagnostic.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index 5845f11073..c0ae6a5a1a 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -333,26 +333,6 @@ get_prev_pos({opts}) *vim.diagnostic.get_prev_pos()* Return: ~ table Previous diagnostic position as a (row, col) tuple. - *vim.diagnostic.get_virt_text_chunks()* -get_virt_text_chunks({line_diags}, {opts}) - Get virtual text chunks to display using - |nvim_buf_set_extmark()|. - - Parameters: ~ - {line_diags} table The diagnostics associated with the - line. - {opts} table|nil Configuration table with the - following keys: - • prefix: (string) Prefix to display before - virtual text on line. - • spacing: (number) Number of spaces to - insert before virtual text. - - Return: ~ - array of ({text}, {hl_group}) tuples. This can be passed - directly to the {virt_text} option of - |nvim_buf_set_extmark()|. - goto_next({opts}) *vim.diagnostic.goto_next()* Move to the next diagnostic. |