-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathccc.lua
70 lines (67 loc) · 1.69 KB
/
ccc.lua
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
return {
'uga-rosa/ccc.nvim',
keymaps = { { 'n', '<leader>cp', ':CccPick<CR>' } },
config = function(config)
require('ccc').setup(config.ccc)
end,
defaultConfig = {
'ccc',
{
-- see https://github.com/uga-rosa/ccc.nvim/blob/main/lua/ccc/config/default.lua
highlighter = {
auto_enable = true,
-- max_byte = 100 * 1024, -- 100 KB. But this option is not implemented
filetypes = {},
excludes = {},
lsp = true,
},
mappings = {
-- ['q'] = mapping.quit,
-- ['<CR>'] = mapping.complete,
-- ['i'] = mapping.toggle_input_mode,
-- ['o'] = mapping.toggle_output_mode,
-- ['a'] = mapping.toggle_alpha,
-- ['g'] = mapping.toggle_prev_colors,
-- ['w'] = mapping.goto_next,
-- ['b'] = mapping.goto_prev,
-- ['W'] = mapping.goto_tail,
-- ['B'] = mapping.goto_head,
-- ['l'] = mapping.increase1,
-- ['d'] = mapping.increase5,
-- [','] = mapping.increase10,
-- ['h'] = mapping.decrease1,
-- ['s'] = mapping.decrease5,
-- ['m'] = mapping.decrease10,
-- ['H'] = mapping.set0,
-- ['M'] = mapping.set50,
-- ['L'] = mapping.set100,
-- ['0'] = mapping.set0,
-- ['1'] = function()
-- ccc.set_percent(10)
-- end,
-- ['2'] = function()
-- ccc.set_percent(20)
-- end,
-- ['3'] = function()
-- ccc.set_percent(30)
-- end,
-- ['4'] = function()
-- ccc.set_percent(40)
-- end,
-- ['5'] = mapping.set50,
-- ['6'] = function()
-- ccc.set_percent(60)
-- end,
-- ['7'] = function()
-- ccc.set_percent(70)
-- end,
-- ['8'] = function()
-- ccc.set_percent(80)
-- end,
-- ['9'] = function()
-- ccc.set_percent(90)
-- end,
},
},
},
}