When I upgrade neovim 0.8.3 to 0.9.0, the plugin https://github.com/junnplus/lsp-setup.nvim diagnostic message disappears when the content is entered in insert mode. after exiting insert mode, the diagnostic message appears again, causing the number line to keep resizing.
set numberwith=6
number line will not change the width constantly, but it will appear again when it exceeds 1000 lines
Is this a bug? how to keep the diagnostic message in insert mode?
insert mode and input ';':
exit insert mode, show diagnostic message, numberwidth changed
the plugin config:
return {
'junnplus/lsp-setup.nvim',
event = 'BufRead',
dependencies = {
'neovim/nvim-lspconfig',
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'folke/neodev.nvim'
},
init = function()
local rounded = { border = 'rounded' }
vim.diagnostic.config({ float = rounded })
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, rounded)
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, rounded)
end,
opts = {
mappings = {
gd = function() require('telescope.builtin').lsp_definitions() end,
gi = function() require('telescope.builtin').lsp_implementations() end,
gr = function() require('telescope.builtin').lsp_references() end,
['<space>f'] = vim.lsp.buf.format,
},
servers = {
eslint = {},
pylsp = {},
lua_ls = {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
}
}
}
},
}
},
}