-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.lua
More file actions
67 lines (59 loc) · 1.78 KB
/
settings.lua
File metadata and controls
67 lines (59 loc) · 1.78 KB
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
return {
-- base directory to look for repos
-- defaults to home
cwd = vim.fn.getenv('HOME'),
-- if true, no error is shown if the call to gfold fails
no_error = false,
-- What symbols to use, for both picker and status
status_symbols = {
clean = '✔',
unclean = '✘',
unpushed = '',
bare = '',
},
-- settings specific to the picker
picker = {
-- how to format an entry in the picker
-- default will be something like:
-- ✔ nvim-gfold.lua (/home/path/to/nvim-gfold.lua)
format_item = function(repo)
return string.format(
'%s %s (%s)',
require('gfold.settings').status_symbols[repo.status],
repo.name,
repo.path
)
end,
-- what to do when selecting a repo
-- by default changes cwd
on_select = require('gfold.actions').change_cwd,
},
-- settings specific to the status(line)
status = {
-- if we should continuously update the summary
enable = true,
-- how long to wait in between querying repo statuses
-- NOTE this is the time from the last process ran until starting it again
-- so the interval will be whatever time it takes to run gfold plus this setting
-- Default is 5 seconds but if for some reason you want this to be updated more frequently
-- you can always make this value smaller.
update_delay = 5000,
-- What color of highlights to use
-- Values are either:
-- * string: a highlight group
-- * table: eg `{fg = '#b8bb26'}`
colors = {
clean = {fg = '#b8bb26'},
unclean = {fg = '#fb4934'},
unpushed = {fg = '#fe8019'},
bare = {fg = '#fabd2f'},
},
-- In which order to show the components of the summary
order = {
'clean',
'unclean',
'unpushed',
'bare',
},
},
}