Skip to content

Commit 56e87bb

Browse files
authored
Add lualine support (#21)
* Add lualine support Signed-off-by: lamcw <thomas@lamcw.com> * Give colors meaningful name Signed-off-by: lamcw <thomas@lamcw.com>
1 parent b310964 commit 56e87bb

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ add one of the following lines to your `.vimrc`:
8888
let g:lightline = { 'colorscheme': 'challenger_deep'}
8989
```
9090

91+
### Lualine Theme ###
92+
93+
Challenger Deep also supports [lualine.vim](https://github.com/nvim-lualine/lualine.nvim). To enable the colorscheme,
94+
add the following lines to your `init.lua`:
95+
96+
```lua
97+
require'lualine'.setup {
98+
options = { theme = 'challenger_deep' }
99+
}
100+
```
101+
91102
### Troubleshooting ###
92103
If you are running vim inside tmux with the alacritty terminal, make sure to set `default-terminal` to `xterm-256color` in your tmux config (see [this issue](https://github.com/challenger-deep-theme/vim/issues/18) for more details:
93104

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
-- =============================================================================
2+
-- Genarated by lightline to lualine theme converter
3+
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
4+
-- License: MIT License
5+
-- =============================================================================
6+
7+
local colors = {
8+
red = "#ff8080",
9+
green = "#95ffa4",
10+
yellow = "#ffe9aa",
11+
cyan = "#aaffe4",
12+
white = "#F3F3F3",
13+
dark_red = "#ff5458",
14+
dark_green = "#62d196",
15+
dark_yellow = "#ffb378",
16+
dark_cyan = "#63f2f1",
17+
dark_asphalt = "#565575",
18+
asphalt_subtle = "#100E23",
19+
}
20+
21+
local challenger_deep = {
22+
normal = {
23+
b = { fg = colors.asphalt_subtle, bg = colors.dark_cyan },
24+
a = { fg = colors.asphalt_subtle, bg = colors.cyan , gui = "bold", },
25+
c = { fg = colors.white, bg = colors.asphalt_subtle },
26+
},
27+
visual = {
28+
b = { fg = colors.asphalt_subtle, bg = colors.dark_yellow },
29+
a = { fg = colors.asphalt_subtle, bg = colors.yellow , gui = "bold", },
30+
},
31+
inactive = {
32+
b = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle },
33+
a = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle , gui = "bold", },
34+
c = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle },
35+
},
36+
replace = {
37+
b = { fg = colors.asphalt_subtle, bg = colors.dark_green },
38+
a = { fg = colors.asphalt_subtle, bg = colors.green , gui = "bold", },
39+
},
40+
insert = {
41+
b = { fg = colors.asphalt_subtle, bg = colors.dark_red },
42+
a = { fg = colors.asphalt_subtle, bg = colors.red , gui = "bold", },
43+
},
44+
}
45+
46+
return challenger_deep

0 commit comments

Comments
 (0)