make lspconfig mappings compatible with nvim 0.6v

This commit is contained in:
siduck 2021-12-22 18:05:07 +05:30
parent 31e551af30
commit 3a966955d4
3 changed files with 9 additions and 10 deletions

View file

@ -115,15 +115,16 @@ M.lsp_handlers = function()
lspSymbol("Hint", "")
lspSymbol("Warn", "")
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
vim.diagnostic.config {
virtual_text = {
prefix = "",
spacing = 0,
},
signs = true,
underline = true,
update_in_insert = false, -- update diagnostics insert mode
})
update_in_insert = false,
}
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "single",
})