install.fairie/home/dot_config/vim/vimrc
Brian Zalewski 42d35cfc43 Latest
2023-07-18 18:27:07 +00:00

121 lines
4 KiB
VimL

" Install Coc extensions
" TODO: Add https://github.com/yuki-yano/fzf-preview.vim
" TODO: Add https://github.com/tpope/vim-fugitive
let g:coc_global_config="$HOME/.config/coc/coc-settings.json"
let g:coc_global_extensions = [
'@yaegassy/coc-ansible',
'@yaegassy/coc-nginx',
'coc-angular',
'coc-blade',
'coc-calc',
'coc-clangd',
'coc-copilot',
'coc-css',
'coc-cssmodules',
'coc-deno',
'coc-diagnostic',
'coc-docker',
'coc-emmet',
'coc-eslint',
'coc-explorer',
'coc-flutter',
'coc-git',
'coc-go',
'coc-highlight',
'coc-html-css-support',
'coc-html',
'coc-htmlhint',
'coc-java',
'coc-jedi',
'coc-json',
'coc-ltex',
'coc-lua',
'coc-markdown-preview-enhanced',
'coc-markdownlint',
'coc-markmap',
'coc-phpls',
'coc-powershell',
'coc-prettier',
'coc-prisma',
'coc-pyright',
'coc-rls',
'coc-rust-analyzer',
'coc-sh',
'coc-solargraph',
'coc-solidity',
'coc-spell-checker',
'coc-stylelint',
'coc-sql',
'coc-sqlfluff',
'coc-svelte',
'coc-svg',
'coc-swagger',
'coc-symbol-line',
'coc-tailwindcss',
'coc-toml',
'coc-tsserver',
'coc-xml',
'coc-yaml',
'coc-yank'
]
" Settings for coc-css extension
autocmd FileType scss setl iskeyword+=@-@
" Settings for coc-go extension, to add missing imports on save
autocmd BufWritePre *.go :silent call CocAction('runCommand', 'editor.action.organizeImport')
syntax enable
set background=dark
colorscheme Betelgeuse
set g:lightline = { 'colorscheme': 'Betelgeuse' }
" Settings for plugin https://github.com/neoclide/coc.nvim.git
autocmd FileType json syntax match Comment +\/\/.\+$+
" Settings for plugin https://github.com/vim-syntastic/syntastic.git
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Settings for plugin https://github.com/ryanoasis/vim-devicons.git
set encoding=UTF-8
" Set location of viminfo file
set viminfo="$HOME/.config/vim/viminfo"
silent! call plug#begin()
Plug '${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/ale'
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/coc.nvim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/copilot.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/dockerfile.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/editorconfig-vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/fzf.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/fzf"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/lightline.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/nerdtree"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/php.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/python-syntax"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/syntastic"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/typescript-vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-airline"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-carbon-now-sh"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-devicons"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-five"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-go"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-javascript"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-jsx"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-markdown"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-multiple-cursors"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-prettier"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-sensible"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vim-surround"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/vimgutter"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/zoxide.vim"
Plug "${XDG_DATA_HOME:-$HOME/.local/share}/vim/plugged/ansible-vim", {"do": "./UltiSnips/generate.sh"}
call plug#end()