From cb74cd8dc0e8d59294a908a2b40f60cc3b67be38 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 20 Mar 2025 17:23:06 +0500 Subject: vim: Load gutentags only when ctags installed --- files/.vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/.vimrc b/files/.vimrc index 315f0c4..8c744d3 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -92,7 +92,9 @@ Plug 'editorconfig/editorconfig-vim' " use CTRL+A/X to create increasing sequence of numbers or letters via visual mode Plug 'triglav/vim-visual-increment' " A Vim plugin that manages your tag files -Plug 'ludovicchabant/vim-gutentags' +if executable('ctags') || executable('ctags-exuberant') || executable('ctags-universal') + Plug 'ludovicchabant/vim-gutentags' +endif " Asynchronous build and test dispatcher Plug 'tpope/vim-dispatch' " Run your tests at the speed of thought -- cgit v1.2.3