mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-09 10:23:46 -05:00
Only check normal mode for existing <Plug>IndentGuidesToggle mapping.
This commit is contained in:
@@ -55,7 +55,7 @@ call s:InitVariable('g:indent_guides_debug', 0 )
|
||||
call s:InitVariable('g:indent_guides_space_guides', 1 )
|
||||
|
||||
" Default mapping
|
||||
if !hasmapto('<Plug>IndentGuidesToggle') && maparg('<Leader>ig', 'n') == ''
|
||||
if !hasmapto('<Plug>IndentGuidesToggle', 'n') && maparg('<Leader>ig', 'n') == ''
|
||||
nmap <silent><unique> <Leader>ig <Plug>IndentGuidesToggle
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user