set nolist on leader-N

This commit is contained in:
psox 2022-06-06 11:19:34 +01:00
parent eadc268fe6
commit 663e4ece08
1 changed files with 2 additions and 2 deletions

4
vimrc
View File

@ -411,9 +411,9 @@ nnoremap <silent> <leader>N :call ToggleGutter()<CR>
function! ToggleGutter() abort
if &number
exec "set nonumber norelativenumber signcolumn=no"
exec "set nonumber norelativenumber signcolumn=no nolist"
else
exec "set number relativenumber"
exec "set number relativenumber list"
try | set signcolumn=auto | catch | set signcolumn=yes:1 | endtry
endif
endfunction