aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2021-04-23 20:09:56 +0200
committerGitHub <noreply@github.com>2021-04-23 20:09:56 +0200
commit4de404a681426f9d5a1253ca7bc97b075ca14bee (patch)
tree7edff9d6344fa595ed4fd9f0724fd41f90741ccf /runtime/lua/vim/lsp/util.lua
parentbb33727922ca4549bb3b9b7aaaac1b535154b669 (diff)
downloadrneovim-4de404a681426f9d5a1253ca7bc97b075ca14bee.tar.gz
rneovim-4de404a681426f9d5a1253ca7bc97b075ca14bee.tar.bz2
rneovim-4de404a681426f9d5a1253ca7bc97b075ca14bee.zip
lsp: sort diagnostics by severity (#14372)
Allow to sort diagnostics (and thus signs and virtual text) by severity, so that the most important message is shown first. vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { severity_sort = true, } ) Fixes https://github.com/neovim/neovim/issues/13929
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions