From 773764a9a4587a14c514b1071d7a60611aa19ec9 Mon Sep 17 00:00:00 2001 From: burnettk Date: Mon, 15 Feb 2021 10:51:05 -0500 Subject: [PATCH] allow users to opt out of default ctags leader mapping --- vim/plugin/ctags.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim/plugin/ctags.vim b/vim/plugin/ctags.vim index 8e27b09..3050af5 100644 --- a/vim/plugin/ctags.vim +++ b/vim/plugin/ctags.vim @@ -14,4 +14,9 @@ function! ReindexCtags() endif endfunction -nmap ct :call ReindexCtags() +" 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 ct :call ReindexCtags() +endif