summary refs log tree commit diff
path: root/home/.config/nvim
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-04 16:30:06 -0400
committerJune McEnroe <june@causal.agency>2017-07-04 16:30:06 -0400
commit7d6a4f057f8d7f8a8be472ca7d969dd38ec9a78a (patch)
treee343192dbccd62b2157ada87e26d769838bc413c /home/.config/nvim
parentAdd nvim terminal mappings (diff)
downloadsrc-7d6a4f057f8d7f8a8be472ca7d969dd38ec9a78a.tar.gz
src-7d6a4f057f8d7f8a8be472ca7d969dd38ec9a78a.zip
Show terminal title in statusline
Diffstat (limited to 'home/.config/nvim')
-rw-r--r--home/.config/nvim/init.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 32d3caab..32341c60 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -20,6 +20,7 @@ command! W w
 
 colorscheme trivial
 
+autocmd TermOpen * setlocal statusline=%{b:term_title}
 autocmd BufEnter term://* startinsert
 autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
 autocmd FileType sh,zsh,ruby setlocal shiftwidth=2