added GoCoverage command
This commit is contained in:
@@ -99,6 +99,23 @@ end
|
|||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require'lazy'.setup{ --{{{1
|
require'lazy'.setup{ --{{{1
|
||||||
|
{ 'rafaelsq/nvim-goc.lua', --{{{2
|
||||||
|
config = function ()
|
||||||
|
local goc = require'nvim-goc'
|
||||||
|
goc.setup{}
|
||||||
|
---@param name string
|
||||||
|
local cmd = function(name)
|
||||||
|
vim.api.nvim_create_user_command(
|
||||||
|
'Go'..name,
|
||||||
|
'lua require"nvim-goc".'..name..'()',
|
||||||
|
{ nargs = 0 }
|
||||||
|
)
|
||||||
|
end
|
||||||
|
cmd('Coverage')
|
||||||
|
cmd('CoverageFunc')
|
||||||
|
cmd('ClearCoverage')
|
||||||
|
end,
|
||||||
|
},
|
||||||
{ 'f-person/git-blame.nvim', --{{{2
|
{ 'f-person/git-blame.nvim', --{{{2
|
||||||
keys = {',a'},
|
keys = {',a'},
|
||||||
config = function ()
|
config = function ()
|
||||||
@@ -479,7 +496,6 @@ require'lazy'.setup{ --{{{1
|
|||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'nvim-telescope/telescope-ui-select.nvim',
|
'nvim-telescope/telescope-ui-select.nvim',
|
||||||
},
|
},
|
||||||
keys = {",f"},
|
|
||||||
config = function()
|
config = function()
|
||||||
local a = require'telescope.actions'
|
local a = require'telescope.actions'
|
||||||
require'telescope'.setup{
|
require'telescope'.setup{
|
||||||
|
|||||||
Reference in New Issue
Block a user