Skip to content

Commit

Permalink
Change diagnostic symbols if vim.g.have_nerd_font is true (nvim-lua#1195
Browse files Browse the repository at this point in the history
)

* 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>
  • Loading branch information
gloomy-lemon-debatable authored Oct 30, 2024
1 parent fb7f6a1 commit d09d9bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,15 @@ require('lazy').setup({
end,
})

-- Change diagnostic symbols in the sign column (gutter)
-- if vim.g.have_nerd_font then
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
-- for type, icon in pairs(signs) do
-- local hl = 'DiagnosticSign' .. type
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
-- end
-- end

-- LSP servers and clients are able to communicate to each other what features they support.
-- By default, Neovim doesn't support everything that is in the LSP specification.
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
Expand Down

0 comments on commit d09d9bc

Please sign in to comment.