allow users to opt out of default ctags leader mapping
This commit is contained in:
parent
219fd82be6
commit
773764a9a4
1 changed files with 6 additions and 1 deletions
|
@ -14,4 +14,9 @@ function! ReindexCtags()
|
|||
endif
|
||||
endfunction
|
||||
|
||||
" to stop this mapping from being added, put this in $MYVIMRC:
|
||||
" let g:thoughtbot_ctags_mappings_enabled = 0
|
||||
let g:thoughtbot_ctags_mappings_enabled = get(g:, 'thoughtbot_ctags_mappings_enabled', 1)
|
||||
if g:thoughtbot_ctags_mappings_enabled != 0
|
||||
nmap <Leader>ct :call ReindexCtags()<CR>
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue