feat: add galaxyline color theme, see notes in readme

This commit is contained in:
NTBBloodbath 2021-09-17 10:48:24 -04:00
commit cec5f5451a
No known key found for this signature in database
GPG key ID: 18D6730BC846AAC5
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,19 @@
local present, galaxyline_colors = pcall(require, "galaxyline.themes.colors")
if not present then
return
end
local palette = require("rose-pine.palette")
galaxyline_colors["rose-pine"] = {
bg = palette.overlay,
fg = palette.text,
fg_alt = palette.subtle,
yellow = palette.gold,
cyan = palette.foam,
green = palette.inactive,
orange = palette.rose,
magenta = palette.iris,
blue = palette.foam,
red = palette.love,
}

View file

@ -55,6 +55,9 @@ function util.load()
for group, colors in pairs(theme.plugins) do
util.highlight(group, colors)
end
-- Load galaxyline theme
require("rose-pine.galaxyline.theme")
end
return util

View file

@ -38,6 +38,19 @@ require('lualine').setup({
})
```
Otherwise if you use [galaxyline](https://github.com/glepnir/galaxyline.nvim)
```lua
-- This should be in your galaxyline configuration file
local colors = require("galaxyline.themes.colors")["rose-pine"]
```
> **IMPORTANT**:
>
> 1. This requires [NTBBloodbath's galaxyline fork](https://github.com/NTBBloodbath/galaxyline.nvim) in order to work.
>
> 2. You can see the list of available colors [here](https://github.com/NTBBloodbath/galaxyline.nvim/blob/main/docs/themes.md#colors-standards).
## Plugin Support
- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)