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.
This commit is contained in:
Dionisio E Alonso 2023-04-06 21:21:47 -03:00
parent e5c31fb0a9
commit d66a36e04e
1 changed files with 1 additions and 2 deletions

View File

@ -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