From 3d5389c8d47bb3be19d831d94fd7c5f5faf9f1e1 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 26 Feb 2019 10:45:28 +0100 Subject: [PATCH] Add term cursor overrides to tmux Allows cursor to be changed by nvim whenever it mode-changes. Works in urxvt, untested in other terminals. --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 796f00f..9238b32 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -68,6 +68,10 @@ set -g @plugin 'Morantron/tmux-fingers' run -b "${TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm" +# Set Cursor terminal override, so nvim can change cursor style when changing modes +# more info see nvim, :help tui-cursor-shape +set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' + ## Begin theming > theme from github.com/jimeh/tmux-themepack, the powerline/default/blue theme. ## It is integrated with prefix highlight for this tmux conf