feat: Change to prepare for upcoming deprecation of configuring diagnostic-signs using sign_define() (#1232)
This commit is contained in:
parent
2ba39c6973
commit
e5dc5f6d1c
7
init.lua
7
init.lua
@ -590,11 +590,12 @@ require('lazy').setup({
|
|||||||
|
|
||||||
-- Change diagnostic symbols in the sign column (gutter)
|
-- Change diagnostic symbols in the sign column (gutter)
|
||||||
-- if vim.g.have_nerd_font then
|
-- if vim.g.have_nerd_font then
|
||||||
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
|
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
|
||||||
|
-- local diagnostic_signs = {}
|
||||||
-- for type, icon in pairs(signs) do
|
-- for type, icon in pairs(signs) do
|
||||||
-- local hl = 'DiagnosticSign' .. type
|
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
|
||||||
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
|
||||||
-- end
|
-- end
|
||||||
|
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
-- LSP servers and clients are able to communicate to each other what features they support.
|
-- LSP servers and clients are able to communicate to each other what features they support.
|
||||||
|
Loading…
Reference in New Issue
Block a user