-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage overlay in buffers #785
Conversation
=> Clear coverlay before rerunning. => If tests pass, show coverlay immediately. => If tests fail, show window with list of failures, but don't switch to line showing failure. Useful for TDD.
… vim-go behaivior
command! -nargs=* -bang GoCoverlay call go#coverlay#Coverlay(<bang>0, <f-args>) | ||
command! -nargs=* GoClearlay call go#coverlay#Clearlay(<f-args>) | ||
|
||
" vim:ts=4:sw=4:et |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some notes:
- Mappings should be moved to
mappings.vim
- Commands should be moved to
commands.vim
- Commands should be renamed to:
:GoCoverage
->:GoCoverageBrowser
:GoCoverlay
->:GoCoverage
:GoClearlay
->:GoCoverageClear
Our current command will not open the browser anymore, instead it will use this current implementation. However if people want they can still access them via :GoCoverageBrowser
Yes, I've added notes. We're going to rename them and this implementation will replace the current command
I would prefer to squash it
Right now we don't have any kinds of tests. But this is very high on my list soon. I have to make a research and then implement the tests. For now I think we can keep these tests and once we decide on the tests, I'll can change them.
That's ok. But I was thinking of changing it. We should be able to highlight the whole line if possible. I'll look into it now.
It's ok, I don't want people to change it. It's an implementation deteail and people should not change it. The same applies for
We can check this out, right now I'm not sure how this will affect but we probably can find a way Excellent work btw, thank you very much including this :) I'm using coverage extensively, so I think this is a huge addition! |
autocmd! | ||
autocmd BufEnter,BufWinEnter,BufFilePost * call go#coverlay#draw() | ||
autocmd BufWinLeave * call go#coverlay#clear() | ||
augroup END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved to our autogroup section in file plugin/go.vim
Alright I couldn't stop myself. I've made it faster by using I'll merge your changes and then apply my patch (as I know what to do already). Let me finalize the latest bits on my part. Thanks again for the work, works really cool ;) |
Thanks! |
As suggested by #686 , I've merged
vim-go-coverlay
repository simply and modified several conflicts.I'd ask these points to merge:
matchadd