-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.lua
70 lines (65 loc) · 1.87 KB
/
init.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
require("smart-enter"):setup {
open_multi = true,
}
require("eza-preview"):setup()
local tokyonight_theme = require("yatline-tokyonight"):setup "moon"
require("searchjump"):setup {
opt_unmatch_fg = "#545c7e",
opt_match_str_fg = "#c8d3f5",
opt_match_str_bg = "#3e68d7",
opt_lable_fg = "#c8d3f5",
opt_lable_bg = "#ff007c",
opt_only_current = false, -- only search the current window
-- opt_search_patterns = {} -- demo:{"%.e%d+","s%d+e%d+"}
}
require("yatline"):setup {
theme = tokyonight_theme,
tab_width = 20,
tab_use_inverse = false,
show_background = true,
display_header_line = true,
display_status_line = true,
header_line = {
left = {
section_a = { { type = "line", custom = false, name = "tabs", params = { "left" } } },
section_b = {},
section_c = {},
},
right = {
section_a = {
{ type = "string", custom = false, name = "date", params = { "%X" } },
},
section_b = {
{ type = "string", custom = false, name = "date", params = { "%Y-%m-%d" } },
},
section_c = {
-- { type = "coloreds", custom = false, name = "githead" },
},
},
},
status_line = {
left = {
section_a = {
{ type = "string", custom = false, name = "tab_mode" },
},
section_b = {
{ type = "string", custom = false, name = "hovered_size" },
},
section_c = {
{ type = "string", custom = false, name = "hovered_name" },
{ type = "coloreds", custom = false, name = "count" },
},
},
right = {
section_a = {
{ type = "string", custom = false, name = "cursor_position" },
},
section_b = {
{ type = "string", custom = false, name = "cursor_percentage" },
},
section_c = {
{ type = "string", custom = false, name = "hovered_file_extension", params = { true } },
},
},
},
}