Add some escape sequences for tmux true color

This commit is contained in:
ViViDboarder 2021-12-15 15:24:22 -08:00
parent eca001d4d7
commit 24f2e9b645
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,10 @@ local utils = require("utils")
-- Set leader to space -- Set leader to space
g.mapleader = " " g.mapleader = " "
vim.cmd([[
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
]])
o.termguicolors = true o.termguicolors = true
o.number = true o.number = true
o.expandtab = true o.expandtab = true

View File

@ -111,6 +111,12 @@ if &term =~# '^screen'
set term=xterm set term=xterm
endif endif
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
" gotta set these *last*, since `set term` resets everything " gotta set these *last*, since `set term` resets everything
set t_ts=k set t_ts=k
set t_fs=\ set t_fs=\