diff options
-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() |