commit d19f683466761ad37022615d10052669eabf8d29
parent c199b829eace6651d00f7f7aed42a5b5b4e495f5
Author: oscarbenedito <oscar@oscarbenedito.com>
Date:   Thu, 28 May 2020 23:52:55 +0200

Fixed nvim colors in tmux

Diffstat:
Mdot_config/nvim/init.vim | 16++++++----------
Adot_config/tmux/tmux.conf | 3+++
Mdot_config/zsh/aliases.tmpl | 1+
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim @@ -120,18 +120,9 @@ nmap <Space> za " /shortcuts }}} " colorscheme {{{ - colorscheme onedark set t_ut="" " deactivates vim BCE option (messes up colors) - -if (empty($TMUX)) " 24-bit true-color configuration - if (has("nvim")) - let $NVIM_TUI_ENABLE_TRUE_COLOR=1 - endif - if (has("termguicolors")) - set termguicolors - endif -endif +set termguicolors " /colorscheme }}} @@ -162,4 +153,9 @@ nnoremap <Leader>latexm :-1read $XDG_CONFIG_HOME/nvim/templates/tex.Makefile<CR> " /templates }}} +" other {{{ + +let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 1 runtime shortcuts.vim + +" /other }}} diff --git a/dot_config/tmux/tmux.conf b/dot_config/tmux/tmux.conf @@ -0,0 +1,3 @@ +set -g default-terminal "screen-256color" +set -ga terminal-overrides ',*:Tc' # this is for 256 color +set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape diff --git a/dot_config/zsh/aliases.tmpl b/dot_config/zsh/aliases.tmpl @@ -12,6 +12,7 @@ alias diff="diff --color=auto" alias cp="cp --interactive" alias mv="mv --interactive" alias mkdir="mkdir --parents" +alias tmux="TERM=screen-256color tmux" # Shortcuts alias v="nvim"