-
Hi, The reason for this is that I'm dealing with a scenario where the LSP diagnostics are reporting an issue on a line that is valid in the context of my project's requirements. While I understand the importance of diagnostics, I would like to know if there's a way to suppress or disable diagnostics for just this line without affecting the rest of the codebase. Thank you for your assistance and support. Looking forward to your guidance on how to handle this situation effectively. |
Beta Was this translation helpful? Give feedback.
Answered by
glepnir
Aug 28, 2023
Replies: 2 comments 2 replies
-
you mean disable the sign and virtual text ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
this is not relate lspsaga. but you can try vim.api.nvim_create_autocmd('BufEnter', {
pattern = your special file pattern
callback = function(opt)
vim.diagnostic.disable(opt.buf)
end
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Koda777
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is not relate lspsaga. but you can try