From 8b97d8c7b07dcdb478e59d930860952547f1c8cb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Oct 2023 21:58:19 +0200 Subject: nvim: Fix colors on neovide --- .config/nvim/after/plugin/colors.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.config') 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() -- cgit v1.2.3