|
1 | 1 | {
|
2 | 2 | plugins.oil = {
|
3 | 3 | enable = true;
|
4 |
| - useDefaultKeymaps = true; |
5 |
| - deleteToTrash = true; |
6 |
| - viewOptions = { |
7 |
| - showHidden = true; |
8 |
| - }; |
9 |
| - float = { |
10 |
| - padding = 2; |
11 |
| - maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)''; |
12 |
| - maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)''; |
13 |
| - border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open |
14 |
| - winOptions = { |
15 |
| - winblend = 0; |
| 4 | + settings = { |
| 5 | + useDefaultKeymaps = true; |
| 6 | + deleteToTrash = true; |
| 7 | + viewOptions = { |
| 8 | + showHidden = true; |
| 9 | + }; |
| 10 | + preview = { |
| 11 | + border = "rounded"; |
| 12 | + }; |
| 13 | + |
| 14 | + float = { |
| 15 | + padding = 2; |
| 16 | + maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)''; |
| 17 | + maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)''; |
| 18 | + border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open |
| 19 | + winOptions = { |
| 20 | + winblend = 0; |
| 21 | + }; |
| 22 | + }; |
| 23 | + keymaps = { |
| 24 | + "g?" = "actions.show_help"; |
| 25 | + "<CR>" = "actions.select"; |
| 26 | + "<C-\\>" = "actions.select_vsplit"; |
| 27 | + "<C-enter>" = "actions.select_split"; # this is used to navigate left |
| 28 | + "<C-t>" = "actions.select_tab"; |
| 29 | + "<C-p>" = "actions.preview"; |
| 30 | + "<C-c>" = "actions.close"; |
| 31 | + "<C-r>" = "actions.refresh"; |
| 32 | + "-" = "actions.parent"; |
| 33 | + "_" = "actions.open_cwd"; |
| 34 | + "`" = "actions.cd"; |
| 35 | + "~" = "actions.tcd"; |
| 36 | + "gs" = "actions.change_sort"; |
| 37 | + "gx" = "actions.open_external"; |
| 38 | + "g." = "actions.toggle_hidden"; |
| 39 | + "q" = "actions.close"; |
16 | 40 | };
|
17 |
| - }; |
18 |
| - preview = { |
19 |
| - border = "rounded"; |
20 |
| - }; |
21 |
| - keymaps = { |
22 |
| - "g?" = "actions.show_help"; |
23 |
| - "<CR>" = "actions.select"; |
24 |
| - "<C-\\>" = "actions.select_vsplit"; |
25 |
| - "<C-enter>" = "actions.select_split"; # this is used to navigate left |
26 |
| - "<C-t>" = "actions.select_tab"; |
27 |
| - "<C-p>" = "actions.preview"; |
28 |
| - "<C-c>" = "actions.close"; |
29 |
| - "<C-r>" = "actions.refresh"; |
30 |
| - "-" = "actions.parent"; |
31 |
| - "_" = "actions.open_cwd"; |
32 |
| - "`" = "actions.cd"; |
33 |
| - "~" = "actions.tcd"; |
34 |
| - "gs" = "actions.change_sort"; |
35 |
| - "gx" = "actions.open_external"; |
36 |
| - "g." = "actions.toggle_hidden"; |
37 |
| - "q" = "actions.close"; |
38 | 41 | };
|
39 | 42 | };
|
40 | 43 | keymaps = [
|
|
0 commit comments