Skip to content

Commit e5dc5f6

Browse files
authored
feat: Change to prepare for upcoming deprecation of configuring diagnostic-signs using sign_define() (#1232)
1 parent 2ba39c6 commit e5dc5f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

init.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,12 @@ require('lazy').setup({
590590

591591
-- Change diagnostic symbols in the sign column (gutter)
592592
-- if vim.g.have_nerd_font then
593-
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
593+
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
594+
-- local diagnostic_signs = {}
594595
-- for type, icon in pairs(signs) do
595-
-- local hl = 'DiagnosticSign' .. type
596-
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
596+
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
597597
-- end
598+
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
598599
-- end
599600

600601
-- LSP servers and clients are able to communicate to each other what features they support.

0 commit comments

Comments
 (0)