mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:47:34 +00:00
Add some escape sequences for tmux true color
This commit is contained in:
parent
eca001d4d7
commit
24f2e9b645
@ -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
|
||||||
|
@ -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=\
|
||||||
|
Loading…
Reference in New Issue
Block a user