vim:setts: Use the number column for the signcolumn

This commit is contained in:
2025-11-25 17:27:48 +01:00
parent 04d3d6e87f
commit 9e18be760c

View File

@@ -119,6 +119,15 @@ if (exists('g:loaded_gitgutter'))
" lines have been changed.
set foldtext=gitgutter#fold#foldtext()
endif
" Use the number column for the signcolumn (e.g. gitgutter, lsp diagnostics),
" but don't fallback to 'auto' when &number is off
" TODO: install autocommand to set signcolumn to yes when number is turned off
" (and back to number when turned back on)
if &number
set signcolumn=number
else
set signcolumn=yes
endif
" Netrw
" Use tree style listing