tune colors for cpp in astrodark

This commit is contained in:
Oliver Hartmann 2023-05-31 00:11:33 +02:00
parent 832a09e031
commit d34858bbc3

View File

@ -3,6 +3,7 @@ return {
lazy = false, lazy = false,
priority = 1000, priority = 1000,
config = function() config = function()
local C = require('astrotheme.palettes.astrodark')
require('astrotheme').setup({ require('astrotheme').setup({
palette = 'astrodark', -- String of the default palette to use when calling `:colorscheme astrotheme` palette = 'astrodark', -- String of the default palette to use when calling `:colorscheme astrotheme`
@ -25,6 +26,25 @@ return {
astrodark = { 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') vim.cmd('colorscheme astrodark')
end, end,