allow users to opt out of default ctags leader mapping

This commit is contained in:
burnettk 2021-02-15 10:51:05 -05:00 committed by Geoff Harcourt
parent 219fd82be6
commit 773764a9a4

View file

@ -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