Skip to content

Go (golang) code coverage overlays support for Vim

Notifications You must be signed in to change notification settings

anupcshan/vim-go-coverlay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go (golang) code coverage overlays support for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 92.8%
  • Go 4.9%
  • Ruby 2.3%