diff options
author | Steven Le Rouzic <slerouzic@siradel.com> | 2023-04-13 11:00:14 +0200 |
---|---|---|
committer | Steven Le Rouzic <slerouzic@siradel.com> | 2023-04-13 11:00:14 +0200 |
commit | 3984f5137b23a668a6221dbedd53b667824c5de8 (patch) | |
tree | 60c29738987176ac7a79ef4b734855716f34b24d /lua/my_theme.lua | |
parent | 3da69f3bcb2d02063a1b5a31694bfa984370870a (diff) |
Fix enum colorization
Diffstat (limited to 'lua/my_theme.lua')
-rw-r--r-- | lua/my_theme.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/my_theme.lua b/lua/my_theme.lua index 68821b0..9dcbee9 100644 --- a/lua/my_theme.lua +++ b/lua/my_theme.lua @@ -22,13 +22,19 @@ require("lualine").setup({ vim.o.guifont = "Cascadia Mono:h11" vim.o.linespace = 0 +function fixup_theme() + vim.api.nvim_set_hl(0, "@lsp.type.class.cpp", { link = "@type" }) + vim.api.nvim_set_hl(0, "@lsp.type.enum.cpp", { link = "@type" }) +end + my_switch_theme = function() if vim.o.background == "dark" then require("vscode").load("light") else require("vscode").load("dark") end + fixup_theme() end -vim.api.nvim_set_hl(0, "@lsp.type.class.cpp", { link = "@type" }) +fixup_theme() |