51 lines
1,000 B
Nix
51 lines
1,000 B
Nix
{ pkgs, ... }: {
|
|
plugins.trouble = {
|
|
enable = true;
|
|
settings.auto_close = 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)";
|
|
};
|
|
}
|
|
];
|
|
}
|