From d34858bbc31b3d73f85ed7097ca1f1962b08c9d8 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 31 May 2023 00:11:33 +0200 Subject: [PATCH] tune colors for cpp in astrodark --- lua/plugins/astrodark.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/plugins/astrodark.lua b/lua/plugins/astrodark.lua index 33b29d7..f36fb36 100644 --- a/lua/plugins/astrodark.lua +++ b/lua/plugins/astrodark.lua @@ -3,6 +3,7 @@ return { lazy = false, priority = 1000, config = function() + local C = require('astrotheme.palettes.astrodark') require('astrotheme').setup({ palette = 'astrodark', -- String of the default palette to use when calling `:colorscheme astrotheme` @@ -25,6 +26,25 @@ return { astrodark = { }, }, + highlights = { + global = { + modify_hl_groups = function(hl, c) + end, + }, + astrodark = { + modify_hl_groups = function(hl, c) -- modify_hl_groups function allows you to modify hl groups, + hl.Type = { fg = c.Yellow } + hl.Comment = { italic = true } + end, + ['@lsp.mod.readonly'] = { bold = true }, + ['@lsp.type.namespace.cpp'] = { fg = C.rb }, + ['@lsp.type.variable'] = { fg = C.text }, + ['Comment'] = { italic = true }, + ['Type'] = { fg = C.dark_orange }, + ['Structure'] = { link = 'Type' }, + ['Constant'] = { fg = 'NONE' }, + } + } }) vim.cmd('colorscheme astrodark') end,