From 3984f5137b23a668a6221dbedd53b667824c5de8 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 13 Apr 2023 11:00:14 +0200 Subject: Fix enum colorization --- lua/my_theme.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lua/my_theme.lua') 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() -- cgit