From 84b646a9ed026c1fa6f8f88996c93ccfc5376af4 Mon Sep 17 00:00:00 2001 From: BoilingSoup <84747244+BoilingSoup@users.noreply.github.com> Date: Wed, 19 Jan 2022 00:44:58 -0800 Subject: [PATCH] update deprecated vim diagnostic function --- lua/user/lsp/handlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index fb8b7f8..60d5601 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -76,7 +76,7 @@ local function lsp_keymaps(bufnr) bufnr, "n", "gl", - 'lua vim.lsp.diagnostic.show_line_diagnostics({ border = "rounded" })', + 'lua vim.diagnostic.open_float({ border = "rounded" })', opts ) vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", 'lua vim.diagnostic.goto_next({ border = "rounded" })', opts)