From ad1a23f1bba4af8eb90756ed4e70b58e7a5e9b6b Mon Sep 17 00:00:00 2001 From: 434b Date: Thu, 4 May 2023 10:08:56 +0200 Subject: [PATCH 1/4] feat(test): add nvim-coverage --- lua/astrocommunity/test/nvim-coverage/README.md | 5 +++++ lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 lua/astrocommunity/test/nvim-coverage/README.md create mode 100644 lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua diff --git a/lua/astrocommunity/test/nvim-coverage/README.md b/lua/astrocommunity/test/nvim-coverage/README.md new file mode 100644 index 000000000..7beb917ea --- /dev/null +++ b/lua/astrocommunity/test/nvim-coverage/README.md @@ -0,0 +1,5 @@ +# nvim-coverage + +**Repository:** + +Displays test coverage data in the sign column diff --git a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua new file mode 100644 index 000000000..4ec979614 --- /dev/null +++ b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua @@ -0,0 +1,8 @@ +return { + "andythigpen/nvim-coverage", + lazy = false, + requires = { "nvim-lua/plenary.nvim" }, + -- Optional: needed for PHP when using the cobertura parser + rocks = { "lua-xmlreader" }, + config = function() require("coverage").setup() end, +} From e2b77fb617de32627d4ea49cb9c93962d739da35 Mon Sep 17 00:00:00 2001 From: 434b <17012133+0xricksanchez@users.noreply.github.com> Date: Thu, 4 May 2023 11:54:40 +0200 Subject: [PATCH 2/4] Update lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua Co-authored-by: Oli <57495944+owittek@users.noreply.github.com> --- lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua index 4ec979614..10afbd3cf 100644 --- a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua +++ b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua @@ -1,6 +1,6 @@ return { "andythigpen/nvim-coverage", - lazy = false, + event = "User AstroFile", requires = { "nvim-lua/plenary.nvim" }, -- Optional: needed for PHP when using the cobertura parser rocks = { "lua-xmlreader" }, From 99a484fd5564551130c375a37df259ef1001e1ee Mon Sep 17 00:00:00 2001 From: 434b <17012133+0xricksanchez@users.noreply.github.com> Date: Thu, 4 May 2023 11:54:46 +0200 Subject: [PATCH 3/4] Update lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua Co-authored-by: Oli <57495944+owittek@users.noreply.github.com> --- lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua index 10afbd3cf..3714e032b 100644 --- a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua +++ b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua @@ -4,5 +4,4 @@ return { requires = { "nvim-lua/plenary.nvim" }, -- Optional: needed for PHP when using the cobertura parser rocks = { "lua-xmlreader" }, - config = function() require("coverage").setup() end, } From 29e95504138f913f101f5ff392c9aaa2e0250de4 Mon Sep 17 00:00:00 2001 From: 434b Date: Thu, 4 May 2023 11:57:47 +0200 Subject: [PATCH 4/4] fix(nvim-coverage): requested changes --- lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua index 3714e032b..ff3330e48 100644 --- a/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua +++ b/lua/astrocommunity/test/nvim-coverage/nvim-coverage.lua @@ -2,6 +2,4 @@ return { "andythigpen/nvim-coverage", event = "User AstroFile", requires = { "nvim-lua/plenary.nvim" }, - -- Optional: needed for PHP when using the cobertura parser - rocks = { "lua-xmlreader" }, }