summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-04 21:58:19 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-04 21:58:19 +0200
commit8b97d8c7b07dcdb478e59d930860952547f1c8cb (patch)
tree4f5af5f9384b573b0677c0af94ab159997c1b554 /.config/nvim/after/plugin
parent3714810cb5a905b268e5c6b34a14fbc7dd0a3463 (diff)
nvim: Fix colors on neovide
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r--.config/nvim/after/plugin/colors.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua
index e3d2d94..f14e545 100644
--- a/.config/nvim/after/plugin/colors.lua
+++ b/.config/nvim/after/plugin/colors.lua
@@ -3,9 +3,17 @@ require('rose-pine').setup({
})
function SetTheme(color)
+ local hl = vim.api.nvim_set_hl
vim.cmd.colorscheme(color or 'rose-pine')
- vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
- vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
+ hl(0, 'Normal', vim.g.neovide and {
+ fg = '#C5C8C6',
+ bg = '#2B303B',
+ } or {
+ fg = 'none',
+ bg = 'none',
+ })
+
+ hl(0, 'NormalFloat', { bg = 'none' })
end
SetTheme()