From 7b3909f45cddc3126992a04faad231aa4d8144f7 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 5 Mar 2024 13:13:20 -0500 Subject: [PATCH] Use double quotes for strings in init.vim and fix an error when autocompletion is disabled --- init.vim | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/init.vim b/init.vim index f6750df..52d3290 100644 --- a/init.vim +++ b/init.vim @@ -15,7 +15,7 @@ "}}} "add config directory: (distro-agnostic system-wide) -let &runtimepath = printf('%s,%s/vim,%s/vim/after,%s/local', &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath) +let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath) "load colours if &term != "linux" @@ -43,20 +43,21 @@ runtime config/settings.vim let g:pathogen_disabled = get(g:, "pathogen_disabled", []) "don't load vim-gutentags if g:enableautotags is false or ctags isn't in path -if !g:enableautotags || !executable('ctags') - call add(g:pathogen_disabled, 'vim-gutentags') +if !g:enableautotags || !executable("ctags") + call add(g:pathogen_disabled, "vim-gutentags") endif "don't load nvim-cmp or its dependencies if g:enablecompletion is false if !g:enablecompletion - call add(g:pathogen_disabled, 'nvim-cmp') - call add(g:pathogen_disabled, 'cmp-buffer') - call add(g:pathogen_disabled, 'cmp-nvim-tags') - call add(g:pathogen_disabled, 'cmp-omni') - call add(g:pathogen_disabled, 'cmp-snippy') - call add(g:pathogen_disabled, 'cmp-treesitter') - call add(g:pathogen_disabled, 'nvim-snippy') - call add(g:pathogen_disabled, 'vim-snippets') + call add(g:pathogen_disabled, "cmp-async-path") + call add(g:pathogen_disabled, "cmp-buffer") + call add(g:pathogen_disabled, "cmp-nvim-tags") + call add(g:pathogen_disabled, "cmp-omni") + call add(g:pathogen_disabled, "cmp-snippy") + call add(g:pathogen_disabled, "cmp-treesitter") + call add(g:pathogen_disabled, "nvim-cmp") + call add(g:pathogen_disabled, "nvim-snippy") + call add(g:pathogen_disabled, "vim-snippets") endif "use pathogen to load plugins that haven't been disabled