From a8f3e416a8e9e1cafe8aae802cb1215578a6a11f Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Aug 2022 01:40:30 +0200 Subject: [PATCH] enable true colour in nvim --- .config/zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 856b649..25e8814 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -130,6 +130,8 @@ if type emacsclient >& - \ alias $(command -v emacsremote)="TERM=${TERM%-*}-direct $(command -v emacsremote)" fi +[[ ${COLORTERM} == *(truecolor|24bit)* ]] && export NVIM_TUI_ENABLE_TRUE_COLOR=1 + export GPG_TTY=$(tty) case ${TERM} in