summaryrefslogtreecommitdiff
path: root/.config/nvim/after
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after')
-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()