vim: Load 'easy' always-on plugins automatically
Load always-on plugins that do not need extra configuration automatically through vim's pack/*/start directory.
This commit is contained in:
1
.config/vim/pack/plugins/start/delimitMate
Symbolic link
1
.config/vim/pack/plugins/start/delimitMate
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../opt/delimitMate/
|
||||||
1
.config/vim/pack/plugins/start/onedark.vim
Symbolic link
1
.config/vim/pack/plugins/start/onedark.vim
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../opt/onedark.vim/
|
||||||
1
.config/vim/pack/plugins/start/vim-gitgutter
Symbolic link
1
.config/vim/pack/plugins/start/vim-gitgutter
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../opt/vim-gitgutter/
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
" Plugins ######################################################################
|
" Plugins ######################################################################
|
||||||
|
" Load all plugins in pack/*/start
|
||||||
|
packloadall
|
||||||
|
|
||||||
" ARM assembly syntax highlighting
|
" ARM assembly syntax highlighting
|
||||||
autocmd BufNewFile,BufRead *.s,*.S packadd! arm-syntax-vim | set filetype=arm
|
autocmd BufNewFile,BufRead *.s,*.S packadd! arm-syntax-vim | set filetype=arm
|
||||||
" Auto completion
|
" Auto completion
|
||||||
@@ -9,19 +12,13 @@ if (has('patch-8.1.1719') || has('nvim'))
|
|||||||
packadd! coc.nvim
|
packadd! coc.nvim
|
||||||
source $XDG_CONFIG_HOME/vim/coc.nvim.vim
|
source $XDG_CONFIG_HOME/vim/coc.nvim.vim
|
||||||
endif
|
endif
|
||||||
" Automatically close parentheses, brackets, quotes, etc.
|
|
||||||
packadd! delimitMate
|
|
||||||
" Fuzzy finder
|
" Fuzzy finder
|
||||||
packadd! fzf
|
packadd! fzf
|
||||||
packadd! fzf.vim
|
packadd! fzf.vim
|
||||||
nmap <leader>f :Files<CR>
|
nmap <leader>f :Files<CR>
|
||||||
" Theme
|
|
||||||
packadd! onedark.vim
|
|
||||||
" LaTeX
|
" LaTeX
|
||||||
autocmd BufNewFile,BufRead *.tex packadd! vimtex
|
autocmd BufNewFile,BufRead *.tex packadd! vimtex
|
||||||
\ | source $XDG_CONFIG_HOME/vim/vimtex.vim
|
\ | source $XDG_CONFIG_HOME/vim/vimtex.vim
|
||||||
" Git information
|
|
||||||
packadd! vim-gitgutter
|
|
||||||
" ctags
|
" ctags
|
||||||
packadd! vim-gutentags
|
packadd! vim-gutentags
|
||||||
nmap <leader>t :Tags<CR>
|
nmap <leader>t :Tags<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user