diff options
author | Gregory Anders <greg@gpanders.com> | 2021-07-29 10:02:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 09:02:17 -0700 |
commit | 3521bf7672d2a33e60e2656043374a1584a0285b (patch) | |
tree | 6e74294ae74832293154d7ef15e135d6a33a37e1 /src/nvim/api/private/helpers.c | |
parent | 3b6d95b5f6376aead758bd67a9279d0f991e4d45 (diff) | |
download | rneovim-3521bf7672d2a33e60e2656043374a1584a0285b.tar.gz rneovim-3521bf7672d2a33e60e2656043374a1584a0285b.tar.bz2 rneovim-3521bf7672d2a33e60e2656043374a1584a0285b.zip |
feat(lsp): implement vim.lsp.diagnostic.redraw() (#15203)
Add a new function to redraw diagnostics from the current diagnostic
cache, without receiving a "publishDiagnostics" message from the server.
This is already being done in two places in the Lua stdlib, so this
function unifies that functionality in addition to providing it to third
party plugins.
An example use case for this could be a command or key-binding for
toggling diagnostics virtual text. The virtual text configuration option
can be toggled using `vim.lsp.with` followed by
`vim.lsp.diagnostic.redraw()` to immediately redraw the diagnostics
with the updated setting.
Diffstat (limited to 'src/nvim/api/private/helpers.c')
0 files changed, 0 insertions, 0 deletions