-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.lua
38 lines (34 loc) · 1.07 KB
/
config.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
local config = {}
config.options = {}
local function with_defaults(options)
return {
ring = {
history_length = options.ring and options.ring.history_length or 100,
storage = options.ring and options.ring.storage or "shada",
sync_with_numbered_registers = options.ring and options.ring.sync_with_numbered_registers or true,
},
system_clipboard = {
sync_with_ring = options.system_clipboard and options.system_clipboard.sync_with_ring or true,
},
highlight = {
on_put = options.highlight and options.highlight.on_put or true,
on_yank = options.highlight and options.highlight.on_yank or true,
timer = options.highlight and options.highlight.timer or 500,
},
preserve_cursor_position = {
enabled = options.preserve_cursor_position and options.preserve_cursor_position.enabled or true,
},
picker = {
select = {
action = nil,
},
telescope = {
mappings = nil,
},
},
}
end
function config.setup(options)
config.options = with_defaults(options or {})
end
return config