Skip to content

Commit 89c66c7

Browse files
glmlmKevin Langmade
authored and
Kevin Langmade
committed
feat: Change to prepare for upcoming deprecation of configuring diagnostic-signs using sign_define() (nvim-lua#1232)
1 parent 5fc73de commit 89c66c7

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
@@ -567,11 +567,12 @@ require('lazy').setup({
567567

568568
-- Change diagnostic symbols in the sign column (gutter)
569569
-- if vim.g.have_nerd_font then
570-
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
570+
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
571+
-- local diagnostic_signs = {}
571572
-- for type, icon in pairs(signs) do
572-
-- local hl = 'DiagnosticSign' .. type
573-
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
573+
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
574574
-- end
575+
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
575576
-- end
576577

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

0 commit comments

Comments
 (0)