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
74
75
76
77
78
79
80
81
82
83
84
85
86
|
return {
{
"lualine.nvim",
for_cats = "ui",
event = { "DeferredUIEnter" },
after = function()
require("lualine").setup({
options = {
component_separators = { left = "|", right = "|" },
section_separators = {},
},
sections = {
lualine_a = {
{
"mode",
fmt = function(mode)
return ({
NORMAL = "(。•ᴗ•。)",
INSERT = "(づ。◕‿‿◕。)づ",
VISUAL = "(≧◡≦)",
["V-LINE"] = "(≧▿≦)",
["V-BLOCK"] = "(☆ω☆)",
COMMAND = "( ̄ω ̄)",
REPLACE = "(;ω;)",
TERMINAL = "(^▽^)",
})[mode] or mode
end,
},
},
},
})
end,
},
{
"hlchunk.nvim",
for_cats = "ui",
event = { "BufReadPre", "BufNewFile" },
after = function()
local ignored_filetypes = {
gitcommit = true,
oil = true,
Neogitstatus = true,
TelescopePrompt = true,
NvimTree = true,
help = true,
nix = true,
}
require("hlchunk").setup({
chunk = {
enable = true,
priority = 15,
-- style = {
-- vim.api.nvim_get_hl(0, { name = "IndentBlanklineIndent1" }),
-- vim.api.nvim_get_hl(0, { name = "DiagnosticError" }),
-- },
use_treesitter = false,
chars = {
horizontal_line = "─",
vertical_line = "│",
left_top = "┌",
left_bottom = "└",
right_arrow = "─",
},
textobject = "",
exclude_filetypes = ignored_filetypes,
max_file_size = 1024 * 1024,
error_sign = true,
-- animation related
duration = 200,
delay = 300,
},
indent = {
enable = true,
priority = 10,
style = { vim.api.nvim_get_hl(0, { name = "Whitespace" }) },
use_treesitter = false,
exclude_filetypes = ignored_filetypes,
chars = { "│" },
ahead_lines = 5,
delay = 100,
},
})
end,
},
}
|