mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
feat: add galaxyline color theme, see notes in readme
This commit is contained in:
parent
11f9c5b297
commit
417d5122f3
3 changed files with 35 additions and 0 deletions
19
lua/rose-pine/galaxyline/theme.lua
Normal file
19
lua/rose-pine/galaxyline/theme.lua
Normal 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,
|
||||||
|
}
|
||||||
|
|
@ -55,6 +55,9 @@ function util.load()
|
||||||
for group, colors in pairs(theme.plugins) do
|
for group, colors in pairs(theme.plugins) do
|
||||||
util.highlight(group, colors)
|
util.highlight(group, colors)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Load galaxyline theme
|
||||||
|
require("rose-pine.galaxyline.theme")
|
||||||
end
|
end
|
||||||
|
|
||||||
return util
|
return util
|
||||||
|
|
|
||||||
13
readme.md
13
readme.md
|
|
@ -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
|
## Plugin Support
|
||||||
|
|
||||||
- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
|
- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue