feat(diagnostic)!: deprecate format as a table

This commit is contained in:
Yi Ming authored and Justin M. Keyes committed 2026-05-07 12:03:02 +02:00
1 parent 33c6d51167
commit f54f566bf8
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -4219,11 +4219,11 @@ describe('vim.diagnostic', function()
)
end)
it('uses text from diagnostic.config().status.format[severity]', function()
it('uses text from diagnostic.config().signs.text[severity]', function()
local result = exec_lua(function()
vim.diagnostic.config({
status = {
format = {
signs = {
text = {
[vim.diagnostic.severity.ERROR] = '⨯',
[vim.diagnostic.severity.WARN] = '⚠︎',
},