Skip to content

Commit

Permalink
fix: reset diagnostics when lazy view buffer closes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 25, 2022
1 parent 3e8fbaf commit 04dea38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local Util = require("lazy.util")
local Render = require("lazy.view.render")
local Config = require("lazy.core.config")

local M = {}

Expand Down Expand Up @@ -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, {
Expand Down

0 comments on commit 04dea38

Please sign in to comment.