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
71
72
73
|
-- NOTE: lua dump(vim.fn.expand("#<1")) to get newest oldfile
local settings = {
header = {
type = "text",
oldfiles_directory = false,
align = "left",
fold_section = false,
title = "Header",
margin = 5,
content = require("startup.headers").default_header(),
highlight = "Statement",
default_color = "",
oldfiles_amount = 0,
},
body = {
type = "oldfiles",
oldfiles_directory = false,
align = "center",
fold_section = false,
title = "Oldfiles",
margin = 5,
content = "",
highlight = "String",
default_color = "",
oldfiles_amount = 10,
},
body_2 = {
type = "oldfiles",
oldfiles_directory = true,
align = "center",
fold_section = false,
title = "",
margin = 5,
content = "",
highlight = "String",
default_color = "",
oldfiles_amount = 10,
},
footer = {
type = "text",
oldfiles_directory = true,
align = "center",
fold_section = false,
title = "Quote",
margin = 5,
content = require("startup.functions").quote(),
highlight = "String",
default_color = "",
oldfiles_amount = 0,
},
options = {
mapping_keys = false,
cursor_column = 0.25,
empty_line_between_mappings = false,
disable_statuslines = true,
paddings = { 1, 2, 2, 3 },
},
mappings = {
execute_command = "<CR>",
open_file = "o",
open_file_split = "<c-o>",
open_section = "<TAB>",
open_help = "?",
},
colors = {
background = "#1f2227",
folded_section = "#56b6c2",
},
parts = { "header", "body", "body_2", "footer" },
}
return settings
|