Skip to content

Conversation

@glmlm
Copy link
Contributor

@glmlm glmlm commented Nov 14, 2024

Since Neovim 0.10, it seems that configuring diagnostic-signs using sign_define() has been deprecated.
There is another way to set them as follows:

if vim.g.have_nerd_font then
  vim.diagnostic.config {
    signs = {
      text = {
        [vim.diagnostic.severity.ERROR] = '',
        [vim.diagnostic.severity.WARN] = '',
        [vim.diagnostic.severity.INFO] = '',
        [vim.diagnostic.severity.HINT] = '',
      },
    },
  }
end

In the committed one, I simply focused on fewer lines and readability(after all, this section is commented out).

@feoh
Copy link
Collaborator

feoh commented Nov 20, 2024

Thanks for this! Merging.

@feoh feoh merged commit e5dc5f6 into nvim-lua:master Nov 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants