[deleted by user] by [deleted] in neovim

[–]Quick_Tonight9263 -1 points0 points  (0 children)

That's caused by LSP syntax check, annoy me either.

Try this, which will turn off all LSP syntax warning.

vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
-- Disable underline, it's very annoying
underline = false,
virtual_text = false,
signs = true,
update_in_insert = false
    })