Dynamically load plugged plugins in vimrc
This commit is contained in:
parent
c19e79600a
commit
8b24e127e8
1
vim/.vim/plug.d/autocomplete.vim
Normal file
1
vim/.vim/plug.d/autocomplete.vim
Normal file
@ -0,0 +1 @@
|
||||
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
||||
3
vim/.vim/plug.d/core.vim
Normal file
3
vim/.vim/plug.d/core.vim
Normal file
@ -0,0 +1,3 @@
|
||||
Plug 'SirVer/ultisnips', { 'tag': '3.2' }
|
||||
Plug 'editorconfig/editorconfig-vim', { 'tag': 'v1.1.1' }
|
||||
Plug 'tpope/vim-surround'
|
||||
2
vim/.vim/plug.d/fzf.vim
Normal file
2
vim/.vim/plug.d/fzf.vim
Normal file
@ -0,0 +1,2 @@
|
||||
Plug 'junegunn/fzf', { 'tag': '0.24.4' }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
4
vim/.vim/plug.d/lang.vim
Normal file
4
vim/.vim/plug.d/lang.vim
Normal file
@ -0,0 +1,4 @@
|
||||
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
||||
Plug 'fatih/vim-go', { 'tag': 'v1.24', 'for': [ 'go' ] }
|
||||
Plug 'hashivim/vim-hashicorp-tools'
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||
57
vim/.vim/plug.d/lint.vim
Normal file
57
vim/.vim/plug.d/lint.vim
Normal file
@ -0,0 +1,57 @@
|
||||
Plug 'dense-analysis/ale', {
|
||||
\ 'tag': 'v3.0.0',
|
||||
\ 'for': [
|
||||
\ 'bash',
|
||||
\ 'css',
|
||||
\ 'dockerfile',
|
||||
\ 'go',
|
||||
\ 'graphql',
|
||||
\ 'html',
|
||||
\ 'javascript',
|
||||
\ 'json',
|
||||
\ 'less',
|
||||
\ 'make',
|
||||
\ 'markdown',
|
||||
\ 'php',
|
||||
\ 'python',
|
||||
\ 'ruby',
|
||||
\ 'rust',
|
||||
\ 'scss',
|
||||
\ 'sh',
|
||||
\ 'sql',
|
||||
\ 'tcl',
|
||||
\ 'toml',
|
||||
\ 'typescript',
|
||||
\ 'vim',
|
||||
\ 'vue',
|
||||
\ 'xml',
|
||||
\ 'yaml'
|
||||
\ ]
|
||||
\ }
|
||||
|
||||
Plug 'prettier/vim-prettier', {
|
||||
\ 'branch': 'release/1.x',
|
||||
\ 'do': 'npm install',
|
||||
\ 'for': [
|
||||
\ 'css',
|
||||
\ 'graphql',
|
||||
\ 'html',
|
||||
\ 'javascript',
|
||||
\ 'json',
|
||||
\ 'less',
|
||||
\ 'markdown',
|
||||
\ 'package',
|
||||
\ 'php',
|
||||
\ 'pug',
|
||||
\ 'python',
|
||||
\ 'ruby',
|
||||
\ 'scss',
|
||||
\ 'sh',
|
||||
\ 'swift',
|
||||
\ 'toml',
|
||||
\ 'typescript',
|
||||
\ 'vue',
|
||||
\ 'xml',
|
||||
\ 'yaml'
|
||||
\ ]
|
||||
\ }
|
||||
@ -1,5 +1,5 @@
|
||||
" Nerdtree settings
|
||||
"
|
||||
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle', 'tag': '6.9.8' }
|
||||
|
||||
" Close all open buffers on entering a window if the only
|
||||
" buffer that's left is the NERDTree buffer
|
||||
function! s:CloseIfOnlyNerdTreeLeft()
|
||||
@ -17,5 +17,6 @@ let g:NERDTreeDirArrowCollapsible = '▾'
|
||||
|
||||
let NERDTreeDirArrows=1
|
||||
let NERDTreeIgnore = ['\.pyc$', '\.swp$']
|
||||
|
||||
map <leader>nt :NERDTreeToggle<CR>
|
||||
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
|
||||
2
vim/.vim/plug.d/pgsql.vim
Normal file
2
vim/.vim/plug.d/pgsql.vim
Normal file
@ -0,0 +1,2 @@
|
||||
Plug 'lifepillar/pgsql.vim', { 'for': [ 'sql' ] }
|
||||
let g:sql_type_default = 'pgsql'
|
||||
2
vim/.vim/plug.d/themes.vim
Normal file
2
vim/.vim/plug.d/themes.vim
Normal file
@ -0,0 +1,2 @@
|
||||
Plug 'NLKNguyen/papercolor-theme'
|
||||
Plug 'sheerun/vim-wombat-scheme'
|
||||
@ -1 +0,0 @@
|
||||
let g:sql_type_default = 'pgsql'
|
||||
71
vim/.vimrc
71
vim/.vimrc
@ -1,72 +1,7 @@
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
Plug 'NLKNguyen/papercolor-theme'
|
||||
Plug 'SirVer/ultisnips', { 'tag': '3.2' }
|
||||
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
||||
Plug 'editorconfig/editorconfig-vim', { 'tag': 'v1.1.1' }
|
||||
Plug 'fatih/vim-go', { 'tag': 'v1.24', 'for': [ 'go' ] }
|
||||
Plug 'hashivim/vim-hashicorp-tools'
|
||||
Plug 'lifepillar/pgsql.vim', { 'for': [ 'sql' ] }
|
||||
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
||||
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle', 'tag': '6.9.8' }
|
||||
Plug 'dense-analysis/ale', {
|
||||
\ 'tag': 'v3.0.0',
|
||||
\ 'for': [
|
||||
\ 'bash',
|
||||
\ 'css',
|
||||
\ 'dockerfile',
|
||||
\ 'go',
|
||||
\ 'graphql',
|
||||
\ 'html',
|
||||
\ 'javascript',
|
||||
\ 'json',
|
||||
\ 'less',
|
||||
\ 'make',
|
||||
\ 'markdown',
|
||||
\ 'php',
|
||||
\ 'python',
|
||||
\ 'ruby',
|
||||
\ 'rust',
|
||||
\ 'scss',
|
||||
\ 'sh',
|
||||
\ 'sql',
|
||||
\ 'tcl',
|
||||
\ 'toml',
|
||||
\ 'typescript',
|
||||
\ 'vim',
|
||||
\ 'vue',
|
||||
\ 'xml',
|
||||
\ 'yaml'
|
||||
\ ]
|
||||
\ }
|
||||
Plug 'prettier/vim-prettier', {
|
||||
\ 'branch': 'release/1.x',
|
||||
\ 'do': 'npm install',
|
||||
\ 'for': [
|
||||
\ 'css',
|
||||
\ 'graphql',
|
||||
\ 'html',
|
||||
\ 'javascript',
|
||||
\ 'json',
|
||||
\ 'less',
|
||||
\ 'markdown',
|
||||
\ 'package',
|
||||
\ 'php',
|
||||
\ 'pug',
|
||||
\ 'python',
|
||||
\ 'ruby',
|
||||
\ 'scss',
|
||||
\ 'sh',
|
||||
\ 'swift',
|
||||
\ 'toml',
|
||||
\ 'typescript',
|
||||
\ 'vue',
|
||||
\ 'xml',
|
||||
\ 'yaml'
|
||||
\ ]
|
||||
\ }
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||
Plug 'sheerun/vim-wombat-scheme'
|
||||
Plug 'tpope/vim-surround'
|
||||
for f in split(glob('~/.vim/plug.d/*.vim'), '\n')
|
||||
exe 'source' f
|
||||
endfor
|
||||
|
||||
call plug#end()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user