summaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-07-02 17:54:38 -0400
committerLouie S <louie@example.com>2024-07-02 17:54:38 -0400
commitf3c40bfdf890d7a363ce54df4c690a9b69676185 (patch)
treeb2cc5d44510274572a2a5fb6ac8cbd2a9b0af569 /lua/user
parent590c33f35d2226a9cf7f9741011384ddef5add6f (diff)
Fix incorrect visual mode and pmenu in 0.10
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/colorscheme.lua15
1 files changed, 10 insertions, 5 deletions
diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua
index 631ad35..0e4ac03 100644
--- a/lua/user/colorscheme.lua
+++ b/lua/user/colorscheme.lua
@@ -1,7 +1,7 @@
local gui = false -- set to true if guicolors should be on by default
local function colorscheme_set()
- local colorscheme = "legacy_slate"
+ local colorscheme = "patch_0.10_legacy_slate"
if gui then
colorscheme = "slate"
@@ -14,11 +14,16 @@ local function colorscheme_set()
end
-- Set Popup menu colors
- --highlight Pmenu ctermbg=White ctermfg=Black guibg=Gray
- vim.cmd("highlight Pmenu ctermbg=gray guibg=gray")
+ if not (vim.fn.has("nvim-0.10") == 1) then
+ --highlight Pmenu ctermbg=White ctermfg=Black guibg=Gray
+ vim.cmd("highlight Pmenu ctermbg=gray guibg=gray")
- -- Set Parentheses matching to Magenta so that it's actually visible
- vim.cmd("highlight MatchParen ctermbg=none ctermfg=magenta guibg=none guifg=magenta")
+ -- Set Parentheses matching to Magenta so that it's actually visible
+ vim.cmd("highlight MatchParen ctermbg=none ctermfg=magenta guibg=none guifg=magenta")
+ end
+
+ -- TODO fix TODO highlight
+ -- TODO fix FIXME highlight
-- Change some gui colors
vim.cmd("highlight LineNr guifg=yellow3")