Skip to content

Commit

Permalink
Add lualine support (#21)
Browse files Browse the repository at this point in the history
* Add lualine support

Signed-off-by: lamcw <thomas@lamcw.com>

* Give colors meaningful name

Signed-off-by: lamcw <thomas@lamcw.com>
  • Loading branch information
lamcw authored Oct 25, 2021
1 parent b310964 commit 56e87bb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ add one of the following lines to your `.vimrc`:
let g:lightline = { 'colorscheme': 'challenger_deep'}
```

### Lualine Theme ###

Challenger Deep also supports [lualine.vim](https://github.com/nvim-lualine/lualine.nvim). To enable the colorscheme,
add the following lines to your `init.lua`:

```lua
require'lualine'.setup {
options = { theme = 'challenger_deep' }
}
```

### Troubleshooting ###
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:

Expand Down
46 changes: 46 additions & 0 deletions lua/lualine/themes/challenger_deep.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
-- =============================================================================
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================

local colors = {
red = "#ff8080",
green = "#95ffa4",
yellow = "#ffe9aa",
cyan = "#aaffe4",
white = "#F3F3F3",
dark_red = "#ff5458",
dark_green = "#62d196",
dark_yellow = "#ffb378",
dark_cyan = "#63f2f1",
dark_asphalt = "#565575",
asphalt_subtle = "#100E23",
}

local challenger_deep = {
normal = {
b = { fg = colors.asphalt_subtle, bg = colors.dark_cyan },
a = { fg = colors.asphalt_subtle, bg = colors.cyan , gui = "bold", },
c = { fg = colors.white, bg = colors.asphalt_subtle },
},
visual = {
b = { fg = colors.asphalt_subtle, bg = colors.dark_yellow },
a = { fg = colors.asphalt_subtle, bg = colors.yellow , gui = "bold", },
},
inactive = {
b = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle },
a = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle , gui = "bold", },
c = { fg = colors.dark_asphalt, bg = colors.asphalt_subtle },
},
replace = {
b = { fg = colors.asphalt_subtle, bg = colors.dark_green },
a = { fg = colors.asphalt_subtle, bg = colors.green , gui = "bold", },
},
insert = {
b = { fg = colors.asphalt_subtle, bg = colors.dark_red },
a = { fg = colors.asphalt_subtle, bg = colors.red , gui = "bold", },
},
}

return challenger_deep

0 comments on commit 56e87bb

Please sign in to comment.