-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtrouble.nix
56 lines (56 loc) · 1.19 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
46
47
48
49
50
51
52
53
54
55
56
{ lib, config, ... }:
{
plugins.trouble = {
enable = true;
};
keymaps = lib.mkIf config.plugins.trouble.enable [
{
mode = "n";
key = "<leader>xQ";
action = "<CMD>Trouble qflist toggle<CR>";
options = {
desc = "Trouble quifick toggle";
};
}
{
mode = "n";
key = "<leader>xL";
action = "<CMD>Trouble loclist toggle<CR>";
options = {
desc = "Trouble loclist toggle";
};
}
{
mode = "n";
key = "<leader>cs";
action = "<CMD>Trouble symbols focus=false<CR>";
options = {
desc = "Trouble symbols toggle";
};
}
{
mode = "n";
key = "<leader>xx";
action = "<CMD>Trouble diagnostics toggle<CR>";
options = {
desc = "Trouble diagnostics toggle";
};
}
{
mode = "n";
key = "[c";
action = ":lua require('trouble').next {skip_groups = true, jump = true }<CR>";
options = {
desc = "Trouble next";
};
}
{
mode = "n";
key = "]c";
action = ":lua require('trouble').prev {skip_groups = true, jump = true }<CR>";
options = {
desc = "Trouble prev";
};
}
];
}