From ad76983d969c318e6e234bc82384b4b025d70447 Mon Sep 17 00:00:00 2001 From: Squibid Date: Thu, 25 Apr 2024 22:59:43 -0400 Subject: make sure we are safely setting termguicolors --- lua/conf/opts.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/conf/opts.lua') diff --git a/lua/conf/opts.lua b/lua/conf/opts.lua index 682204c..0d0863c 100644 --- a/lua/conf/opts.lua +++ b/lua/conf/opts.lua @@ -27,7 +27,9 @@ o.shiftwidth = tabwidth o.softtabstop = tabwidth -- colorscheme -o.termguicolors = true +if vim.fn.has("termguicolors") then + o.termguicolors = true +end misc.colorscheme('mellow') -- better editing ------------------------------------------------------------- -- cgit v1.2.1