You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to implement overlays visual in case someone might need
2024-05-08.11-10-08.mp4
I prefer as less signs in my sign column as possible. So I tweaks this plugin a little bit for my preferences. I want to keep minimal changes, So all you need is to replace signs with overlays file here and overwrite any part that show signs.
Then override some coverage functions like load(), show(), unplace(), toggle() and clear() to use overlay, you don't have to do this if you just replace sign with overlays in the language files.
functionM.setup(_, opts)
localcoverage=require("coverage")
localoverlays=require("coverage.overlays")
localwatch=require("coverage.watch")
coverage.load=M.loadcoverage.show=overlays.showcoverage.hide=overlays.unplacecoverage.toggle=overlays.toggle---@diagnosticdisable-next-line:duplicate-set-fieldcoverage.clear=function()
overlays.clear()
watch.stop()
endcoverage.setup(opts)
end
I managed to implement overlays visual in case someone might need
2024-05-08.11-10-08.mp4
I prefer as less signs in my sign column as possible. So I tweaks this plugin a little bit for my preferences. I want to keep minimal changes, So all you need is to replace signs with overlays file here and overwrite any part that show signs.
Basically, you extended the languages you want to have return overlays_list, (or just replace sign_list with overlay call)
https://github.com/hieulw/nvimrc/blob/lua-config/lua/coverage/languages/go.lua#L15-L51
Then override some coverage functions like
load(),show(),unplace(),toggle()andclear()to use overlay, you don't have to do this if you just replace sign with overlays in the language files.