-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrouble.nix
45 lines (45 loc) · 1.18 KB
/
trouble.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
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.desc = "TroubleToggle";
}
{
mode = "n";
key = "<leader>xw";
action = "<cmd>TroubleToggle workspace_diagnostics<cr>";
options.desc = "Workspace Diagnostics (Trouble)";
}
{
mode = "n";
key = "<leader>xd";
action = "<cmd>TroubleToggle document_diagnostics<cr>";
options.desc = "Document Diagnostics (Trouble)";
}
{
mode = "n";
key = "<leader>xt";
action = "<cmd>TroubleToggle todo<cr>";
options.desc = "Todo (Trouble)";
}
{
mode = "n";
key = "<leader>xr";
action = "<cmd>TroubleToggle lsp_references<cr>";
options.desc = "Lsp References (Trouble)";
}
];
}