-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostic Icons #52
Comments
Until my local signs = { Error = " ", Warning = " ", Hint = " ", Information = " " }
for type, icon in pairs(signs) do
local hl = "LspDiagnosticsSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end |
Added this after my plugins
It did not work |
@folke Can you tihnk of anything else i might be missing? udpate: I found i can see the icons for one file but not the other, its quite strange. |
@kaykhancheckpoint are you using LSP saga by any chance? If so don't put in the code I posted and configure the symbols through saga |
At least for me, I had to add the snippet from #52 (comment) to my config, otherwise errors in the gutter would show with "E":
Is trouble.nvim supposed to set the signs automatically? |
In my case this not works |
Same for me. I'm wondering the same myself |
I cant seem to change it no matter what i do |
FWIW, I was having the same issue. Changing the sign from
|
@coldis yep, exactly. For 0.6 there were a bunch of changes to diagnostics |
This works for me |
If you use the bleeding edge dev build of nvim, |
Thanks, that worked for me. I want to stress for people who try this: |
local signs = {
Error = "E",
- Warning = "W",
+ Warn = "W",
Hint = "H",
- Information = "I"
+ Info = "I",
}
+
for type, icon in pairs(signs) do
- local hl = "LspDiagnosticsSign" .. type
+ local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end |
Hi, how do i get the diagnostic icons in the gutter?
The text was updated successfully, but these errors were encountered: