Add bubbles config example (#26)

Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
This commit is contained in:
Lokesh Krishna 2021-08-30 21:30:48 +05:30 committed by GitHub
parent 70d925ab17
commit 146ec73887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 72 additions and 0 deletions

View File

@ -33,6 +33,9 @@ For those who want to break the norms. You can create custom looks in lualine.
- [evil_lualine](examples/evil_lualine.lua) - [evil_lualine](examples/evil_lualine.lua)
<img width='700' src='https://user-images.githubusercontent.com/13149513/113875129-4453ba00-97d8-11eb-8f21-94a9ef565db3.png'/> <img width='700' src='https://user-images.githubusercontent.com/13149513/113875129-4453ba00-97d8-11eb-8f21-94a9ef565db3.png'/>
- [bubbles](examples/bubbles.lua)
<img width='700' src='https://user-images.githubusercontent.com/20235646/131350468-fc556196-5f46-4bfe-a72e-960f6a58db2c.png'/>
## Performance compared to other plugins ## Performance compared to other plugins
Unlike other statusline plugins lualine loads only defined components, nothing else. Unlike other statusline plugins lualine loads only defined components, nothing else.

69
examples/bubbles.lua Normal file
View File

@ -0,0 +1,69 @@
-- Bubbles config for lualine
-- Author: lokesh-krishna
-- MIT license, see LICENSE for more details.
-- LuaFormatter off
local colors = {
blue = '#80a0ff',
cyan = '#79dac8',
black = '#080808',
white = '#c6c6c6',
red = '#ff5189',
violet = '#d183e8',
grey = '#303030',
}
-- LuaFormatter on
local bubbles_theme = {
normal = {
a = {fg = colors.black, bg = colors.violet},
b = {fg = colors.white, bg = colors.grey},
c = {fg = colors.black, bg = colors.black},
},
insert = {a = {fg = colors.black, bg = colors.blue}},
visual = {a = {fg = colors.black, bg = colors.cyan}},
replace = {a = {fg = colors.black, bg = colors.red}},
inactive = {
a = {fg = colors.white, bg = colors.black},
b = {fg = colors.white, bg = colors.black},
c = {fg = colors.black, bg = colors.black},
}
}
require'lualine'.setup {
options = {
theme = bubbles_theme,
component_separators = '|',
section_separators = {'', ''},
},
sections = {
lualine_a = {
{'mode',
separator = {'', ''},
right_padding = 2,
}
},
lualine_b = {'filename', 'branch'},
lualine_c = {'fileformat'},
lualine_x = {},
lualine_y = { 'filetype', 'progress' },
lualine_z = {
{'location',
separator = {'', ''},
left_padding = 2,
}
},
},
inactive_sections = {
lualine_a = {'filename'},
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {'location'}
},
tabline = {},
extensions = {}
}