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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
set background=dark
lua << EOF
local colors = require('dracula.palette')
require("dracula").setup {
show_end_of_buffer = true,
lualine_bg_color = "#44475a",
transparent_bg = true,
}
require("gruvbox").setup {
italic = {
strings = false,
comments = false
},
transparent_mode = true,
}
--require("catppuccin").setup({
-- flavour = "macchiato",
-- transparent_background = true,
-- show_end_of_buffer = true,
--})
--
--require("everforest").setup({
-- transparent_background_level = 1,
--})
local empty = require('lualine.component'):extend()
function empty:draw(default_highlight)
self.status = ''
self.applied_separator = ''
self:apply_highlights(default_highlight)
self:apply_section_separators()
return self.status
end
-- Put proper separators and gaps between components in sections
local function process_sections(sections)
for name, section in pairs(sections) do
local left = name:sub(9, 10) < 'x'
for pos = 1, name ~= 'lualine_z' and #section or #section - 1 do
table.insert(section, pos * 2, { empty, color = { fg = colors.white, bg = colors.white } })
end
for id, comp in ipairs(section) do
if type(comp) ~= 'table' then
comp = { comp }
section[id] = comp
end
comp.separator = left and { right = '' } or { left = '' }
end
end
return sections
end
local function modified()
if vim.bo.modified then
return '+'
elseif vim.bo.modifiable == false or vim.bo.readonly == true then
return '-'
end
return ''
end
local transparent = require'lualine.themes.dracula'
transparent.inactive.c.bg = 'nil'
transparent.visual.c.bg = 'nil'
transparent.replace.c.bg = 'nil'
transparent.normal.c.bg = 'nil'
transparent.insert.c.bg = 'nil'
transparent.command.c.bg = 'nil'
require('lualine').setup {
options = {
theme = transparent,
component_separators = '',
section_separators = { left = '', right = '' },
},
sections = process_sections {
lualine_a = { 'mode' },
lualine_b = {
'branch',
'diff',
{ 'filename', file_status = false, path = 1 },
{
'diagnostics',
source = { 'nvim' },
sections = { 'error' },
symbols = {error = 'E '},
diagnostics_color = { error = { bg = colors.red, fg = colors.black, gui = 'bold' } },
--on_click = function()
-- vim.diagnostic.goto_prev()
-- end
},
{
'diagnostics',
source = { 'nvim' },
sections = { 'warn' },
symbols = {warn = 'W '},
diagnostics_color = { warn = { bg = colors.orange, fg = colors.black, gui = 'bold' } },
--on_click = function()
-- vim.diagnostic.goto_next()
-- end
},
{ modified, color = { bg = colors.purple } },
{
'%w',
cond = function()
return vim.wo.previewwindow
end,
},
{
'%r',
cond = function()
return vim.bo.readonly
end,
},
{
'%q',
cond = function()
return vim.bo.buftype == 'quickfix'
end,
},
},
lualine_c = {},
lualine_x = { 'fileformat' },
lualine_y = { 'filetype', 'progress' },
lualine_z = { 'location' },
},
}
require('hlargs').setup {
color = colors.orange
}
require("scrollbar").setup({
marks = {
Search = { color = colors.orange },
Error = { color = colors.red },
Warn = { color = colors.yellow },
Info = { color = colors.pink },
Hint = { color = colors.cyan },
Misc = { color = colors.purple },
},
handlers = {
cursor = false,
handle = false,
},
})
--vim.cmd [[highlight IndentBlanklineIndent1 guifg=#bd93f9 gui=nocombine]]
--vim.cmd [[highlight IndentBlanklineIndent2 guifg=#50fa7b gui=nocombine]]
--vim.cmd [[highlight IndentBlanklineIndent3 guifg=#8be9fd gui=nocombine]]
--vim.cmd [[highlight IndentBlanklineIndent4 guifg=#f1fa8c gui=nocombine]]
--vim.cmd [[highlight IndentBlanklineIndent5 guifg=#ffb86c gui=nocombine]]
--vim.cmd [[highlight IndentBlanklineIndent6 guifg=#ff5555 gui=nocombine]]
--
--require("indent_blankline").setup {
-- space_char_blankline = " ",
--
-- --show_current_context = true,
-- --show_current_context_start = true,
--
-- char_highlight_list = {
-- "IndentBlanklineIndent1",
-- "IndentBlanklineIndent2",
-- "IndentBlanklineIndent3",
-- "IndentBlanklineIndent4",
-- "IndentBlanklineIndent5",
-- "IndentBlanklineIndent6",
-- },
--}
require("nvim-web-devicons").setup {}
require("nvim-treesitter.configs").setup {
ensure_installed = {
"bash", "c", "c_sharp", "comment", "css", "diff", "git_rebase",
"gitattributes", "gitcommit", "gitignore", "html", "latex",
"lua", "make", "markdown", "python", "rust", "vim", "vimdoc",
"zig"
},
highlight = {
enable = true,
},
additional_vim_regex_highlighting = false,
rainbow = {
enable = true,
extended_mode = true,
}
}
EOF
colorscheme dracula
|