We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 555d2d7 commit bfc4bd3Copy full SHA for bfc4bd3
1 file changed
lua/coverage/hints.lua
@@ -13,8 +13,10 @@ local function get_ns()
13
end
14
15
--- Places virtual text hit counts for all open buffers in data.
16
+--- Clears any existing extmarks first to avoid duplication on reload.
17
--- @param data CoverageData
18
M.place = function(data)
19
+ M.clear()
20
local vt = config.opts.line_hits
21
for fname, cov in pairs(data.files) do
22
local bufnr = vim.fn.bufnr(fname, false)
0 commit comments