mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
fix(neovim): Rust test-coverage plugin & coding qol improvements
- Rust: `nvim-coverage` for generating code-coverage report - Rust: Keymaps & nvim-job for test-coverage report display - Coding-QOL: Remove distracting & noisy diagnostic virtual-line - Coding-QOL: Keymaps to disable diagnostic virtual text - Coding-QOL: Disable diagnostic underlines - Fix: Disable telescope `hightlight` to fix frequent crash - Coding-QOL: Telescope Keymaps to move between loops - Coding-QOL: Disable auto fn doc hover through `blink`; `LSPSaga` does it better - Coding-QOL: Adding back `quick-scope` with proper config - Keymap: Use `ctrl-p` to search files; same as vscode
This commit is contained in:
@@ -121,4 +121,30 @@ return {
|
||||
{ "<leader>tS", function() require("neotest").summary.toggle() end, desc = "Test: Toggle Summary Panel" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"andythigpen/nvim-coverage",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("coverage").setup({
|
||||
auto_load = true,
|
||||
commands = true, -- Enable coverage commands
|
||||
highlights = {
|
||||
covered = { fg = "#C3E88D" }, -- Green for covered lines
|
||||
uncovered = { fg = "#F07178" }, -- Red for uncovered lines
|
||||
},
|
||||
signs = {
|
||||
covered = { hl = "CoverageCovered", text = "▎" },
|
||||
uncovered = { hl = "CoverageUncovered", text = "▎" },
|
||||
},
|
||||
summary = {
|
||||
min_coverage = 80.0, -- Minimum coverage percentage
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>tC", function()
|
||||
require("coverage").summary()
|
||||
end, { desc = "Test: Toggle coverage" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user