2019-11-14 16:02:49 +01:00
|
|
|
augroup signtoggle
|
|
|
|
autocmd!
|
|
|
|
" Only show the sign column for the current focused buffer
|
|
|
|
autocmd BufEnter,FocusGained,WinEnter * set signcolumn=yes
|
|
|
|
autocmd BufLeave,FocusLost,WinLeave * set signcolumn=no
|
|
|
|
" Disable the sign column in terminal
|
2020-10-14 16:43:18 +02:00
|
|
|
if exists('##TerminalOpen')
|
|
|
|
autocmd TerminalOpen * setlocal signcolumn=no
|
|
|
|
elseif has('nvim')
|
|
|
|
autocmd TermOpen * setlocal signcolumn=no
|
|
|
|
endif
|
2019-11-14 16:02:49 +01:00
|
|
|
augroup END
|