Any options to toggle diagnostic message?
I'm currently using this plugin and find it very useful. But I use my own diagnostic message setup, so I need to turn of the diagnostic message from this plugin. I wonder if there is any option or config I can do to toggle the message ?
The way I am doing now is modifying the code in highlight.lua manually
@JustinDuDuDuDu29 Sorry for the late response, I've been super busy in the last time.
So you don't want the text? you just want the line highlight?
@chikko80 Yes, that's what I meant. Sometime the error would be too long and getting out of screen. It would be convenient if one can toggle it in configuration
@JustinDuDuDuDu29 i don't use nvim anymore cause unfortunately it lacks a lot of important features i need for my work at the moment. I'll be super busy until fall this year, so if you want to have it changed a PR would be really welcome, otherwise i can take a look at it around october. But as you already figured out, its just this line:
virt_text = {
{ string.rep(" ", 5) .. diagnostic.message, fg },
},
Its probably just setting a bool in the config.lua and do a condition on that line. Would you be down for a PR?
@chikko80 Sure, I'll try my best on that. A great chance to improve my skill ! Thanks a lot.
@JustinDuDuDuDu29 I think you got this! I've coded this plugin with 0 lua experience 5 days after i started using nvim. Docs and GPT will be your friend! :)