From d1264962a9da608ffe2fea9567df3b3ba79dc9e8 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 4 Dec 2019 14:15:27 +0530 Subject: [PATCH] nvim: init.vim: Remove gutentags We will just fire a tag generation command ourselves with Neomake. No need for gutentags. It isn't smart anyways to work for multiple languages and doesn't work on repos like gst-build. --- nvim/init.vim | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 90937b3..5059123 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -39,7 +39,6 @@ Plug 'vim-utils/vim-husk' " Tags Plug 'sk1418/QFGrep' Plug 'steffanc/cscopemaps.vim', { 'for': 'c' } -Plug 'ludovicchabant/vim-gutentags', { 'for': 'c' } Plug 'deoplete-plugins/deoplete-tag' " GDB Plug 'sakhnik/nvim-gdb', { 'do': ':UpdateRemotePlugins' } @@ -248,7 +247,8 @@ nnoremap ghu :GitGutterUndoHunk nnoremap ghr :GitGutterPreviewHunk nnoremap gqf :GitGutterQuickFix nnoremap ggf :GitGutterFold -" For Cscope +" For Cscope & tags +nnoremap ct :NeomakeSh ctags -R . nnoremap cu :NeomakeSh cscope -bqR nnoremap cr :cs reset " For Neomake @@ -471,24 +471,6 @@ call neomake#configure#automake({ let g:neomake_open_list = 2 let g:neomake_warning_sign = {'text': '?'} -" gutentags configuration -" https://www.reddit.com/r/vim/comments/d77t6j/guide_how_to_setup_ctags_with_gutentags_properly/ -let g:gutentags_add_default_project_roots = 0 -let g:gutentags_project_root = ['.git'] -let g:gutentags_cache_dir = expand('$HOME/.vim/tags/') - -let g:gutentags_generate_on_new = 1 -let g:gutentags_generate_on_missing = 1 -let g:gutentags_generate_on_write = 1 -let g:gutentags_generate_on_empty_buffer = 0 - -let g:gutentags_ctags_extra_args = [ - \ '--tag-relative=no', - \ '--fields=+ailmnS', - \ '--recurse', - \ '--if0=yes' - \ ] - " Automatically detect style file and apply style to formatting let g:clang_format#detect_style_file = 1 " Additional trigger not required with deoplete