Skip to content

Commit

Permalink
feat: Change to prepare for upcoming deprecation of configuring diagn…
Browse files Browse the repository at this point in the history
…ostic-signs using sign_define() (nvim-lua#1232)
  • Loading branch information
gloomy-lemon-debatable authored Nov 20, 2024
1 parent 2ba39c6 commit e5dc5f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,12 @@ require('lazy').setup({

-- Change diagnostic symbols in the sign column (gutter)
-- 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
-- local hl = 'DiagnosticSign' .. type
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
-- end
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
-- end

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

0 comments on commit e5dc5f6

Please sign in to comment.