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:
Pratik Tripathy
2025-08-11 12:39:22 +05:30
parent 67fb24d532
commit c572ed6a46
6 changed files with 80 additions and 37 deletions

View File

@@ -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,
},
}