Overview
Request 935013 accepted
- Update to 0.6.0 (details on
- Diagnostics and LSP changes
Initially, diagnostic module is part of vim.lsp module. In
order to support external plugins such as null-ls.nvim, the
nvim team has refactor the diagnostic module to its module
vim.diagnostic. So we need to change our config accordingly.
vim.lsp.diagnostic.show_line_diagnostics() has been changed
to vim.diagnostic.open_float(). Previously, there is no easy
to show diagnostic source unless with some hack, you can now
show source in diagnostics in open_float() easily:
vim.diagnostic.open_float(nil, {
source = 'always'
})
vim.lsp.diagnostic.goto_prev() and
vim.lsp.diagnostic.goto_next() has been renamed to
vim.diagnostic.goto_prev() and vim.diagnostic.goto_next()
respectively.
vim.lsp.diagnostic.set_loclist() and
vim.lsp.diagnostic.set_qflist() has been renamed to
vim.diagnostic.setloclist() and vim.diagnostic.setqflist()
instead.
Diagnostics signs has been renamed, for example (old –> new):
LspDiagnosticsSignError –> DiagnosticSignError (Lsp is
removed, Diagnostics is changed to singular from
Diagnostic)
LspDiagnosticsSignWarning –> DiagnosticSignWarn
LspDiagnosticsSignInformation –> DiagnosticSignInfo
LspDiagnosticsSignHint –> DiagnosticSignHint
Also, related highlight has been renamed too:
DiagnosticsDefaultError –> DiagnosticSignError
Request History
mcepl created request
- Update to 0.6.0 (details on
- Diagnostics and LSP changes
Initially, diagnostic module is part of vim.lsp module. In
order to support external plugins such as null-ls.nvim, the
nvim team has refactor the diagnostic module to its module
vim.diagnostic. So we need to change our config accordingly.
vim.lsp.diagnostic.show_line_diagnostics() has been changed
to vim.diagnostic.open_float(). Previously, there is no easy
to show diagnostic source unless with some hack, you can now
show source in diagnostics in open_float() easily:
vim.diagnostic.open_float(nil, {
source = 'always'
})
vim.lsp.diagnostic.goto_prev() and
vim.lsp.diagnostic.goto_next() has been renamed to
vim.diagnostic.goto_prev() and vim.diagnostic.goto_next()
respectively.
vim.lsp.diagnostic.set_loclist() and
vim.lsp.diagnostic.set_qflist() has been renamed to
vim.diagnostic.setloclist() and vim.diagnostic.setqflist()
instead.
Diagnostics signs has been renamed, for example (old –> new):
LspDiagnosticsSignError –> DiagnosticSignError (Lsp is
removed, Diagnostics is changed to singular from
Diagnostic)
LspDiagnosticsSignWarning –> DiagnosticSignWarn
LspDiagnosticsSignInformation –> DiagnosticSignInfo
LspDiagnosticsSignHint –> DiagnosticSignHint
Also, related highlight has been renamed too:
DiagnosticsDefaultError –> DiagnosticSignError
factory-auto added opensuse-review-team as a reviewer
Please review sources
factory-auto accepted review
Check script succeeded
staging-bot added openSUSE:Factory:Staging:adi:48 as a reviewer
Being evaluated by staging project "openSUSE:Factory:Staging:adi:48"
staging-bot accepted review
Picked "openSUSE:Factory:Staging:adi:48"
dimstar accepted review
licensedigger accepted review
The legal review is accepted preliminary. The package may require actions later on.
dimstar_suse accepted review
Staging Project openSUSE:Factory:Staging:adi:48 got accepted.
dimstar_suse approved review
Staging Project openSUSE:Factory:Staging:adi:48 got accepted.
dimstar_suse accepted request
Staging Project openSUSE:Factory:Staging:adi:48 got accepted.