From d66a36e04e7d4594a9629a7f8601f7daed911876 Mon Sep 17 00:00:00 2001 From: Dionisio E Alonso Date: Thu, 6 Apr 2023 21:21:47 -0300 Subject: [PATCH] feat(nvim-gtk): Update color reset steps for colorscheme onedark In order to be able to re-load/reset default settings in colorscheme onedark, there is no longer a function (`onedark#extend_highlight`) to re-apply colors, but instead that can be achieved by re-loading the highlighting with the `syntax reset` command. --- nvim/ginit.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nvim/ginit.vim b/nvim/ginit.vim index 74f0c77..c8b7aaf 100644 --- a/nvim/ginit.vim +++ b/nvim/ginit.vim @@ -13,6 +13,5 @@ endif " Restore theme's background on GUI let g:onedark_config = {'transparent': v:false} if exists('g:colors_name') && g:colors_name == 'onedark' - let s:colors = onedark#GetColors() - call onedark#extend_highlight('Normal', {'bg': {'gui': s:colors.black.gui}}) + syntax reset endif