From da5cdc5220107de11bf68cd838446830a6f90afb Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Wed, 30 Oct 2024 12:19:56 +0000 Subject: [PATCH] Termgui colours --- config/packages/neovim/init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/packages/neovim/init.lua b/config/packages/neovim/init.lua index b589ae8..cfbb39d 100644 --- a/config/packages/neovim/init.lua +++ b/config/packages/neovim/init.lua @@ -50,10 +50,6 @@ vim.opt.ttyfast = true -- Do not add a newline at the end of the file vim.opt.fixeol = false -if vim.fn.has("termguicolors") == 1 then - vim.opt.termguicolors = true -end - -- Enable syntax highlighting vim.cmd("syntax enable") @@ -242,3 +238,8 @@ require("CopilotChat").setup { layout = 'float', }, } + +if vim.fn.has("termguicolors") == 1 then + vim.opt.termguicolors = true +end +