From 8d6153e85e42942875cc7740b278cb45766882e4 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Tue, 14 Feb 2023 10:27:37 -0800 Subject: Set some custom highlighting for guicolors --- lua/user/colorscheme.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua index 6601ff4..1bfe2aa 100644 --- a/lua/user/colorscheme.lua +++ b/lua/user/colorscheme.lua @@ -20,6 +20,11 @@ local function colorscheme_set() -- Set Parentheses matching to Magenta so that it's actually visible vim.cmd("highlight MatchParen ctermbg=none ctermfg=magenta guibg=none guifg=magenta") + + -- Change some gui colors + vim.cmd("highlight LineNr guifg=yellow3") + vim.cmd("highlight Comment guifg=yellow") + vim.cmd("highlight Todo guibg=blue") end -- keymap for toggling colorscheme @@ -27,16 +32,16 @@ vim.keymap.set("n", "g", function() gui = not gui if gui then vim.cmd(":set termguicolors") - colorscheme_set(gui) + colorscheme_set() vim.cmd(":TSEnable highlight") else vim.cmd(":set notermguicolors") - colorscheme_set(gui) + colorscheme_set() vim.cmd(":TSDisable highlight") end end) -colorscheme_set(gui) +colorscheme_set() --local colorscheme = "legacy_slate" --local gui_colorscheme = "material" -- cgit