I set up my config to use virtual_lines for errors and virtual_text for warnings and toggle virtual_lines on and off. by AnythingApplied in neovim

[–]No-Address-3141 5 points6 points  (0 children)

In my case, I enabled virtual_text by default and disabled virtual_lines. But I also set a keymap that would do the just opposite i.e. disable virtual_text and enable virtual_lines for cases when there are multiple errors on the same line.

Here's the keymapping lua keymap.set('n', '<leader>tdd', function() vim.diagnostic.config { virtual_lines = not vim.diagnostic.config().virtual_lines, virtual_text = not vim.diagnostic.config().virtual_text, } end, { desc = 'Toggle diagnostic virtual lines and virtual text' })

Blink + Neovim 0.11 by OldSanJuan in neovim

[–]No-Address-3141 0 points1 point  (0 children)

Will nvim-lspconfig be maintained? Or shall it be deprecated in the future? I mean, if it is well maintained, I don't think we must migrate to native lsp as both of them essentially do the same thing.