Skip to content

Commit

Permalink
refactor: don't hardcode substitute highlight (#1991)
Browse files Browse the repository at this point in the history
* fix(highlight): don't hardcode substitute highlight

* fix: use inverted colors
  • Loading branch information
theol0403 committed May 21, 2024
1 parent 4dc0ea0 commit 1b6bb7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@
},
"Search": {
"backgroundColor": "theme.editor.findMatchHighlightBackground"
},
"Substitute": {
"backgroundColor": "theme.editor.foreground",
"color": "theme.editor.background"
}
}
},
Expand Down
6 changes: 1 addition & 5 deletions runtime/lua/vscode-neovim/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ local function setup_globals()
Visual = {},
VisualNC = {},
VisualNOS = {},
-- By default, it's linked to Search.
-- But Search highlighting defaults to using VSCode ThemeColor, potentially with some opacity.
-- When the decoration is "virtText", having a background color with opacity can
-- cause the virtual text to blend with the original content.
Substitute = { fg='#282c34', bg='#98c379' },
Substitute = {},
Whitespace = {},
LineNr = {},
LineNrAbove = {},
Expand Down

0 comments on commit 1b6bb7b

Please sign in to comment.