From cec5f5451afd765c38fef55d5371d3ab30fb9301 Mon Sep 17 00:00:00 2001 From: NTBBloodbath Date: Fri, 17 Sep 2021 10:48:24 -0400 Subject: [PATCH] feat: add galaxyline color theme, see notes in readme --- lua/rose-pine/galaxyline/theme.lua | 19 +++++++++++++++++++ lua/rose-pine/util.lua | 3 +++ readme.md | 13 +++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 lua/rose-pine/galaxyline/theme.lua diff --git a/lua/rose-pine/galaxyline/theme.lua b/lua/rose-pine/galaxyline/theme.lua new file mode 100644 index 0000000..eb8db58 --- /dev/null +++ b/lua/rose-pine/galaxyline/theme.lua @@ -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, +} diff --git a/lua/rose-pine/util.lua b/lua/rose-pine/util.lua index 151f495..ba7b117 100644 --- a/lua/rose-pine/util.lua +++ b/lua/rose-pine/util.lua @@ -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 diff --git a/readme.md b/readme.md index eb98657..39fd92a 100644 --- a/readme.md +++ b/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 - [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)