Skip to content

Commit c6abb26

Browse files
glmlmSantiago Restrepo
authored andcommitted
Change diagnostic symbols if vim.g.have_nerd_font is true (nvim-lua#1195)
* feat: Change diagnostic symbols if vim.g.have_nerd_font is true * feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so --------- Co-authored-by: name <email>
1 parent d639ce1 commit c6abb26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,15 @@ require('lazy').setup({
507507
end,
508508
})
509509

510+
-- Change diagnostic symbols in the sign column (gutter)
511+
-- if vim.g.have_nerd_font then
512+
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
513+
-- for type, icon in pairs(signs) do
514+
-- local hl = 'DiagnosticSign' .. type
515+
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
516+
-- end
517+
-- end
518+
510519
-- LSP servers and clients are able to communicate to each other what features they support.
511520
-- By default, Neovim doesn't support everything that is in the LSP specification.
512521
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.

0 commit comments

Comments
 (0)