Files
dotfiles/.config/vim/vimrc.d/20-plugins.vim
druckdev ab53243db8 vim: Enable ftplugins at the very end
Fix error that the highlighting group 'zshOption' does not exist when
editing zsh files. I guess this is the case since ftplugins were loaded
before syntax was enabled.
2020-12-23 14:53:26 +01:00

32 lines
1021 B
VimL

" Plugins ######################################################################
" ARM assembly syntax highlighting
autocmd BufNewFile,BufRead *.s,*.S packadd! arm-syntax-vim | set filetype=arm
" Auto completion
" needs vim >= 8.1.1719 to support features like popup and text property.
if (has('patch-8.1.1719') || has('nvim'))
let g:coc_global_extensions =
\ ['coc-clangd', 'coc-sh', 'coc-python', 'coc-vimtex']
packadd! coc.nvim
source $XDG_CONFIG_HOME/vim/coc.nvim.vim
endif
" Automatically close parentheses, brackets, quotes, etc.
packadd! delimitMate
" Fuzzy finder
packadd! fzf
packadd! fzf.vim
nmap <leader>f :Files<CR>
" Theme
packadd! onedark.vim
" LaTeX
autocmd BufNewFile,BufRead *.tex packadd! vimtex
\ | source $XDG_CONFIG_HOME/vim/vimtex.vim
" Git information
packadd! vim-gitgutter
" ctags
packadd! vim-gutentags
nmap <leader>t :Tags<CR>
" Surround text with parentheses, brackets, quotes, tags, etc.
let g:surround_no_mappings = 1
packadd! vim-surround
source $XDG_CONFIG_HOME/vim/vim-surround.vim