-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
increment.lua
41 lines (35 loc) · 1.06 KB
/
increment.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
local M = {
'nishigori/increment-activator',
desc = 'increment and decrement',
on = { '<Plug>(increment-activator-increment)', '<Plug>(increment-activator-decrement)' },
keymaps = {
{ 'n', '<M-i>', vim.fn['increment_activator#increment'], { desc = 'Increment word under cursor' } },
{ 'n', '<M-I>', vim.fn['increment_activator#decrement'], { desc = 'Decrement word under cursor' } },
},
config = function(config)
local conf = config.increment
vim.g.increment_activator_no_default_key_mappings = 1
vim.g.increment_activator_filetype_candidates = conf
end,
}
M.defaultConfig = {
'increment',
{
['_'] = {
-- LuaFormatter off
{
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
},
{'一', '二', '三', '四', '五', '六', '七', '八', '九', '十'},
{'none', 'debug', 'info', 'warn', 'error'},
{'todo', 'done'},
{'ToDo', 'Done'},
{'low', 'normal', 'high'},
{'open', 'close'},
{'enable', 'disable'},
-- LuaFormatter on
},
},
}
return M