mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-22 16:00:24 -05:00
Use double quotes for strings in init.vim and fix an error when autocompletion is disabled
This commit is contained in:
parent
cee837df73
commit
7b3909f45c
1 changed files with 12 additions and 11 deletions
23
init.vim
23
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
|
||||
|
|
Loading…
Reference in a new issue