All Projects → rafaelsq → nvim-goc.lua

rafaelsq / nvim-goc.lua

Licence: MIT License
Go Coverage for Neovim

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to nvim-goc.lua

Covimerage
Generate coverage information for Vim scripts.
Stars: ✭ 41 (+141.18%)
Mutual labels:  coverage, neovim
mutant-swarm
Mutation testing framework and code coverage for Hive SQL
Stars: ✭ 20 (+17.65%)
Mutual labels:  coverage
goverreport
Command line tool for coverage reporting and validation
Stars: ✭ 44 (+158.82%)
Mutual labels:  coverage
watson-personality-insights-php
Framework Agnostic Watson Personality Insights Client
Stars: ✭ 13 (-23.53%)
Mutual labels:  coverage
jacoco-report
Github action that publishes the JaCoCo report as a comment in the Pull Request
Stars: ✭ 31 (+82.35%)
Mutual labels:  coverage
pytest-coverage-comment
Comments a pull request with the pytest code coverage badge and full report
Stars: ✭ 32 (+88.24%)
Mutual labels:  coverage
kotlin-plugin-generated
A Kotlin compiler plugin that annotates Kotlin-generated methods for improved coverage reports
Stars: ✭ 33 (+94.12%)
Mutual labels:  coverage
developer-workstation-setup-script
Post-install script for Fedora and RHEL 8 clones to create your ultimate development environment
Stars: ✭ 69 (+305.88%)
Mutual labels:  neovim
tikione-jacocoverage
NetBeans module that provides JaCoCo code coverage for Ant based Java SE, Java EE and NetBeans Module projects (JDK5,6,7,8 compatible).
Stars: ✭ 25 (+47.06%)
Mutual labels:  coverage
metal.test
Deprecated, superseded by https://github.com/metal-ci/test
Stars: ✭ 41 (+141.18%)
Mutual labels:  coverage
urlredir
Educational URL redirector service in Go
Stars: ✭ 26 (+52.94%)
Mutual labels:  coverage
goverage
go test -coverprofile for multiple packages
Stars: ✭ 87 (+411.76%)
Mutual labels:  coverage
react-unit-test-practice
No description or website provided.
Stars: ✭ 16 (-5.88%)
Mutual labels:  coverage
behat-code-coverage
Behat Extension to generate code coverage reports for Behat tests
Stars: ✭ 38 (+123.53%)
Mutual labels:  coverage
example-scala
Scala coverage example
Stars: ✭ 33 (+94.12%)
Mutual labels:  coverage
aegir
AEgir - Automated JavaScript project building
Stars: ✭ 73 (+329.41%)
Mutual labels:  coverage
phpunit-travis-ci-coverage-example
phpUnit Testing on Travis-CI with Code Coverage on CodeCov
Stars: ✭ 30 (+76.47%)
Mutual labels:  coverage
pytest-notebook
A pytest plugin for regression testing and regenerating Jupyter Notebooks
Stars: ✭ 35 (+105.88%)
Mutual labels:  coverage
vim-paper
A personal light theme for (Neo)Vim, based on the colour of paper as found in various notebooks. This project is a read-only mirror of https://gitlab.com/yorickpeterse/vim-paper.
Stars: ✭ 53 (+211.76%)
Mutual labels:  neovim
LocalCoverage.jl
Trivial functions for working with coverage for packages locally.
Stars: ✭ 55 (+223.53%)
Mutual labels:  coverage

nvim-goc.lua

easy go coverage

image

Setup

-- if set, when we switch between buffers, it will not split more than once. It will switch to the existing buffer instead
vim.opt.switchbuf = 'useopen'

local goc = require'nvim-goc'
goc.setup({ verticalSplit = false })


vim.keymap.set('n', '<Leader>gcr', goc.Coverage, {silent=true})
vim.keymap.set('n', '<Leader>gcc', goc.ClearCoverage, {silent=true})
vim.keymap.set('n', '<Leader>gct', goc.CoverageFunc, {silent=true})
vim.keymap.set('n', ']a', goc.Alternate, {silent=true})
vim.keymap.set('n', '[a', goc.AlternateSplit, {silent=true})

cf = function(testCurrentFunction)
  local cb = function(path)
    if path then
      vim.cmd(":silent exec \"!xdg-open " .. path .. "\"")
    end
  end

  if testCurrentFunction then
    goc.CoverageFunc(nil, cb, 0)
  else
    goc.Coverage(nil, cb)
  end
end

vim.keymap.set('n', '<leader>gca', cf, {silent=true})
vim.keymap.set('n', '<Leader>gcb', function() cf(true) end, {silent=true})

-- default colors
-- vim.highlight.link('GocNormal', 'Comment')
-- vim.highlight.link('GocCovered', 'String')
-- vim.highlight.link('GocUncovered', 'Error')
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].