From 8b92b4140c87f54cf04a8256f62c1d087e865094 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 27 Mar 2025 17:23:57 +0100 Subject: [PATCH] add: astroluma colorscheme --- lua/pika/plugins/colorschemes.lua | 73 ++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/lua/pika/plugins/colorschemes.lua b/lua/pika/plugins/colorschemes.lua index d18bdd8..7411b9a 100644 --- a/lua/pika/plugins/colorschemes.lua +++ b/lua/pika/plugins/colorschemes.lua @@ -14,6 +14,77 @@ return { { "pauchiner/pastelnight.nvim" }, { "ptdewey/darkearth-nvim" }, { "marko-cerovac/material.nvim" }, + { + "AstroNvim/astrotheme", + opts = { + { + palette = "astrodark", -- String of the default palette to use when calling `:colorscheme astrotheme` + background = { -- :h background, palettes to use when using the core vim background colors + light = "astrolight", + dark = "astrodark", + }, + + style = { + transparent = false, -- Bool value, toggles transparency. + inactive = true, -- Bool value, toggles inactive window color. + float = true, -- Bool value, toggles floating windows background colors. + neotree = true, -- Bool value, toggles neo-trees background color. + border = true, -- Bool value, toggles borders. + title_invert = true, -- Bool value, swaps text and background colors. + italic_comments = true, -- Bool value, toggles italic comments. + simple_syntax_colors = true, -- Bool value, simplifies the amounts of colors used for syntax highlighting. + }, + + termguicolors = true, -- Bool value, toggles if termguicolors are set by AstroTheme. + + terminal_color = true, -- Bool value, toggles if terminal_colors are set by AstroTheme. + + plugin_default = "auto", -- Sets how all plugins will be loaded + -- "auto": Uses lazy / packer enabled plugins to load highlights. + -- true: Enables all plugins highlights. + -- false: Disables all plugins. + + plugins = { -- Allows for individual plugin overrides using plugin name and value from above. + ["bufferline.nvim"] = false, + }, + + palettes = { + global = { -- Globally accessible palettes, theme palettes take priority. + my_grey = "#ebebeb", + my_color = "#ffffff", + }, + astrodark = { -- Extend or modify astrodarks palette colors + ui = { + red = "#800010", -- Overrides astrodarks red UI color + accent = "#CC83E3", -- Changes the accent color of astrodark. + }, + syntax = { + cyan = "#800010", -- Overrides astrodarks cyan syntax color + comments = "#CC83E3", -- Overrides astrodarks comment color. + }, + my_color = "#000000", -- Overrides global.my_color + }, + }, + + highlights = { + global = { -- Add or modify hl groups globally, theme specific hl groups take priority. + modify_hl_groups = function(hl, c) + hl.PluginColor4 = { fg = c.my_grey, bg = c.none } + end, + ["@String"] = { fg = "#ff00ff", bg = "NONE" }, + }, + astrodark = { + -- first parameter is the highlight table and the second parameter is the color palette table + modify_hl_groups = function(hl, c) -- modify_hl_groups function allows you to modify hl groups, + hl.Comment.fg = c.my_color + hl.Comment.italic = true + end, + ["@String"] = { fg = "#ff00ff", bg = "NONE" }, + }, + }, + }, + }, + }, -- { -- "ferdinandrau/lavish.nvim", -- opts = { @@ -34,7 +105,7 @@ return { styles = { -- Style to be applied to different syntax groups -- Value is any valid attr-list value for `:help nvim_set_hl` - comments = { italic = true }, + comments = { italic = false }, keywords = { italic = true }, functions = { bold = true }, variables = { bold = true },