Don't perform default mapping if <Leader>ig
is already mapped.
This commit is contained in:
parent
c909e3193a
commit
1cd149ed2e
@ -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')
|
||||
if !hasmapto('<Plug>IndentGuidesToggle') && maparg('<Leader>ig', 'n') == ''
|
||||
nmap <silent><unique> <Leader>ig <Plug>IndentGuidesToggle
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user