Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.35 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.35 KB

DEPRECATED: use latest vim-go that merged this plugin.

vim-go-coverlay

Go (golang) code coverage overlays support for Vim.

ss-vim-go-coverlay

Install

For Vundle add these lines to your vimrc:

Plugin 'fatih/vim-go' "prerequisites
Plugin 't-yuki/vim-go-coverlay'

Then run :PluginInstall

Mappings

For example, add these lines to your vimrc:

au FileType go nmap <leader>c <Plug>(go-coverlay) "test coverage then overlay covered lines
au FileType go nmap <leader>C <Plug>(go-clearlay) "clear overlay

au BufWritePost *.go call go#coverlay#Coverlay() "run test and cover on file save

Thanks and Credits