mirror of
https://github.com/akr2002/nv.git
synced 2024-11-09 18:49:45 +00:00
50 lines
975 B
Nix
50 lines
975 B
Nix
{
|
|
plugins.trouble = {
|
|
enable = true;
|
|
autoClose = true;
|
|
};
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>x";
|
|
action = "+diagnostics/quickfix";
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>xx";
|
|
action = "<cmd>TroubleToggle<cr>";
|
|
options = {
|
|
silent = true;
|
|
desc = "Document Diagnostics (Trouble)";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>xX";
|
|
action = "<cmd>TroubleToggle workspace_diagnostics<cr>";
|
|
options = {
|
|
silent = true;
|
|
desc = "Workspace Diagnostics (Trouble)";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>xt";
|
|
action = "<cmd>TroubleToggle todo<cr>";
|
|
options = {
|
|
silent = true;
|
|
desc = "Todo (Trouble)";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>xQ";
|
|
action = "<cmd>TodoQuickFix<cr>";
|
|
options = {
|
|
silent = true;
|
|
desc = "Quickfix List (Trouble)";
|
|
};
|
|
}
|
|
];
|
|
}
|
|
|