From 7bfad9cb091303fe540f138f533463aeacefa270 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 7 Dec 2021 22:13:59 +0100 Subject: [PATCH] Set the colorscheme to default in theme - We want to do this to activate the autocommands which modify certain highlight styles. This colorscheme will be set to the proper one from the plugin configuration anyway, which will override this, but in case that plugin is no longer desired, we want to have some default there. --- home/.config/nvim/lua/core/theme.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/nvim/lua/core/theme.lua b/home/.config/nvim/lua/core/theme.lua index 1ef4283..b2628c5 100644 --- a/home/.config/nvim/lua/core/theme.lua +++ b/home/.config/nvim/lua/core/theme.lua @@ -32,6 +32,10 @@ augroup coloroverride augroup END ]] +-- Set the colorscheme to default to trigger the above autocmds +-- This can be overridden from plugin definitions as this file is ran before those +cmd[[colorscheme default]] + -- Don't use true colors in TTY o.termguicolors = os.getenv("DISPLAY") and true or false