From: Stefan Huber Date: Fri, 17 Dec 2021 21:16:47 +0000 (+0100) Subject: plugins: Load some plugins only for non-root X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=afa0c1cb76cb3bc07426eb7a242c985e57619eff;p=vimconf.git plugins: Load some plugins only for non-root --- diff --git a/init.vim b/init.vim index fbdb9aa..c1f7872 100644 --- a/init.vim +++ b/init.vim @@ -308,7 +308,7 @@ let s:normal_mode_mappings = [ let g:termdebug_wide = 1 let termdebugger = $HOME . '/.vim/gdb.sh' -if has('nvim-0.5') +if has('nvim-0.5') && $USER != "root" lua <Unicoder'} Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} -Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'} - Plug 'ryanoasis/vim-devicons', Cond(g:enable_plugin_devicons) Plug 'neomake/neomake' Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} -Plug 'plasticboy/vim-markdown', {'for': 'markdown'} -Plug 'lvht/tagbar-markdown', {'for': 'markdown'} -Plug 'habamax/vim-asciidoctor', {'for': 'asciidoc'} +Plug 'Konfekt/vim-DetectSpellLang', {'do': 'spell'} +Plug 'roryokane/detectindent' + +Plug 'derekwyatt/vim-fswitch', {'for': ['c', 'cpp', 'objc']} +Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']} +"Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} + +Plug 'godlygeek/tabular' +Plug 'junegunn/vim-easy-align' + +Plug 'thinca/vim-fontzoom' + +Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'} + +Plug 'lambdalisue/vim-manpager', {'on': 'MANPAGER'} + +Plug 'https://gitlab.com/dbeniamine/vim-mail' -Plug 'PProvost/vim-markdown-jekyll', {'for': 'markdown'} -Plug 'tpope/vim-liquid', {'for': ['liquid', 'html', 'xml', 'markdown']} +Plug 'dstein64/vim-startuptime' -Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} -Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']} -Plug 'gko/vim-coloresque' +" Make . more useful after a plugin map +Plug 'tpope/vim-repeat' -Plug 'tpope/vim-ragtag' +Plug 'flwyd/vim-conjoin' -Plug 'lervag/vimtex', {'for': 'tex'} if has('nvim') Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'} @@ -56,50 +58,53 @@ else Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' endif -" java extension to deoplete -Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'} - -Plug 'Shougo/neosnippet.vim' -Plug 'Shougo/neosnippet-snippets' -Plug 'tpope/vim-speeddating' -Plug 'jceb/vim-orgmode', {'for': ['org']} -Plug 'vimwiki/vimwiki' -Plug 'mattn/calendar-vim' +if $USER != "root" + Plug 'editorconfig/editorconfig-vim' + Plug 'embear/vim-localvimrc' -Plug 'Konfekt/vim-DetectSpellLang', {'do': 'spell'} -Plug 'roryokane/detectindent' + Plug 'mhinz/vim-signify' + Plug 'tpope/vim-fugitive' + Plug 'airblade/vim-rooter' -Plug 'derekwyatt/vim-fswitch', {'for': ['c', 'cpp', 'objc']} -Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']} -"Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']} + Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'} -Plug 'godlygeek/tabular' -Plug 'junegunn/vim-easy-align' + Plug 'plasticboy/vim-markdown', {'for': 'markdown'} + Plug 'lvht/tagbar-markdown', {'for': 'markdown'} + Plug 'habamax/vim-asciidoctor', {'for': 'asciidoc'} -Plug 'thinca/vim-fontzoom' + Plug 'PProvost/vim-markdown-jekyll', {'for': 'markdown'} + Plug 'tpope/vim-liquid', {'for': ['liquid', 'html', 'xml', 'markdown']} -Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'} + Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} + Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']} + Plug 'gko/vim-coloresque' -Plug 'lambdalisue/vim-manpager', {'on': 'MANPAGER'} + Plug 'tpope/vim-ragtag' -Plug 'https://gitlab.com/dbeniamine/vim-mail' -" Costs a second startup time -Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} + Plug 'lervag/vimtex', {'for': 'tex'} -Plug 'dstein64/vim-startuptime' + " java extension to deoplete + Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'} -" Make . more useful after a plugin map -Plug 'tpope/vim-repeat' + Plug 'Shougo/neosnippet.vim' + Plug 'Shougo/neosnippet-snippets' -Plug 'flwyd/vim-conjoin' + Plug 'tpope/vim-speeddating' + Plug 'jceb/vim-orgmode', {'for': ['org']} + Plug 'vimwiki/vimwiki' + Plug 'mattn/calendar-vim' -Plug 'sjl/splice.vim', {'on': 'SpliceInit'} + " Costs a second startup time + Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} -Plug 'sheerun/vim-polyglot' + Plug 'sjl/splice.vim', {'on': 'SpliceInit'} -if has('nvim-0.5') - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + if has('nvim-0.5') + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + else + Plug 'sheerun/vim-polyglot' + endif endif if filereadable($HOME . '/.vim/plugins-local.vim')