-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathfzf-lua.nix
112 lines (112 loc) · 2.83 KB
/
fzf-lua.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
plugins = {
fzf-lua = {
enable = true;
profile = "telescope";
settings = {
keymap = {
fzf = {
"ctrl-q" = "select-all+accept";
};
};
actions = {
files = {
"ctrl-t".__raw = ''
require("trouble.sources.fzf").actions.open
'';
};
};
};
keymaps = {
"<leader>f'" = {
action = "marks";
options.desc = "View marks";
};
"<leader>f/" = {
action = "grep_curbuf";
options.desc = "Fuzzy find in current buffer";
};
"<leader>f<CR>" = {
action = "resume";
options.desc = "Resume action";
};
"<leader>fa" = {
action = "autocmds";
options.desc = "View autocommands";
};
"<leader>fC" = {
action = "commands";
options.desc = "View commands";
};
"<leader>fb" = {
action = "buffers";
options.desc = "View buffers";
settings = {
sort_mru = true;
sort_lastused = true;
};
};
"<leader>fc" = {
action = "live_grep";
options.desc = "Grep string";
};
"<leader>fd" = {
action = "diagnostics_workspace";
options.desc = "View diagnostics";
};
"<leader>fD" = {
action = "diagnostics_document";
options.desc = "View diagnostics";
};
"<leader>ff" = {
action = "files";
options.desc = "Find files";
};
"<leader><leader>" = {
action = "files";
options.desc = "Find files";
};
"<leader>fh" = {
action = "help_tags";
options.desc = "View help tags";
};
"<leader>fm" = {
action = "man_pages";
options.desc = "View man pages";
};
"<leader>fo" = {
action = "oldfiles";
options.desc = "View old files";
};
"<leader>fr" = {
action = "registers";
options.desc = "View registers";
};
"<leader>fs" = {
action = "lsp_document_symbols";
options.desc = "Search symbols";
};
"<leader>fq" = {
action = "quickfix";
options.desc = "Search quickfix";
};
"<leader>gB" = {
action = "git_branches";
options.desc = "View git branches";
};
"<leader>gC" = {
action = "git_commits";
options.desc = "View git commits";
};
"<leader>gs" = {
action = "git_status";
options.desc = "View git status";
};
"<leader>gS" = {
action = "git_stash";
options.desc = "View git stashes";
};
};
};
};
}