From 04dea38794547cef79d40e56667fd0c9909cf1f1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 25 Nov 2022 22:48:37 +0100 Subject: [PATCH] fix: reset diagnostics when lazy view buffer closes --- lua/lazy/view/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 93c8b7a..3ccadec 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -1,5 +1,6 @@ local Util = require("lazy.util") local Render = require("lazy.view.render") +local Config = require("lazy.core.config") local M = {} @@ -42,6 +43,7 @@ function M.show() local function close() M._buf = nil + vim.diagnostic.reset(Config.ns, buf) if vim.api.nvim_buf_is_valid(buf) then vim.api.nvim_buf_delete(buf, {