install.fairie/home/dot_config/vim/vimrc

126 lines
3.5 KiB
VimL
Raw Normal View History

2023-05-06 18:41:52 -07:00
" Install Coc extensions
2023-06-03 20:45:32 -07:00
" TODO: Add https://github.com/yuki-yano/fzf-preview.vim
" TODO: Add https://github.com/tpope/vim-fugitive
2023-05-06 18:41:52 -07:00
if executable('node')
2023-07-17 23:35:49 -07:00
let g:coc_global_config="$HOME/.config/coc/coc-settings.json"
2023-05-06 18:41:52 -07:00
let g:coc_global_extensions = [
\ '@yaegassy/coc-ansible',
2023-06-03 20:45:32 -07:00
\ '@yaegassy/coc-nginx',
\ 'coc-angular',
\ 'coc-blade',
2023-05-06 18:41:52 -07:00
\ 'coc-calc',
2023-06-03 20:45:32 -07:00
\ 'coc-clangd',
2023-05-06 18:41:52 -07:00
\ 'coc-copilot',
\ 'coc-css',
2023-06-03 20:45:32 -07:00
\ 'coc-cssmodules',
2023-05-06 18:41:52 -07:00
\ 'coc-deno',
2023-06-03 20:45:32 -07:00
\ 'coc-diagnostic',
\ 'coc-docker',
\ 'coc-emmet',
\ 'coc-eslint',
\ 'coc-explorer',
\ 'coc-flutter',
\ 'coc-git',
2023-05-06 18:41:52 -07:00
\ 'coc-go',
2023-06-03 20:45:32 -07:00
\ 'coc-highlight',
\ 'coc-html-css-support',
2023-05-06 18:41:52 -07:00
\ 'coc-html',
2023-06-03 20:45:32 -07:00
\ 'coc-htmlhint',
\ 'coc-java',
\ 'coc-jedi',
2023-05-06 18:41:52 -07:00
\ 'coc-json',
2023-06-03 20:45:32 -07:00
\ 'coc-ltex',
\ 'coc-lua',
\ 'coc-markdown-preview-enhanced',
2023-05-06 18:41:52 -07:00
\ 'coc-markdownlint',
2023-06-03 20:45:32 -07:00
\ 'coc-markmap',
2023-05-06 18:41:52 -07:00
\ 'coc-phpls',
2023-06-03 20:45:32 -07:00
\ 'coc-powershell',
\ 'coc-prettier',
\ 'coc-prisma',
2023-05-06 18:41:52 -07:00
\ 'coc-pyright',
\ 'coc-rls',
2023-06-03 20:45:32 -07:00
\ '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'
2023-05-06 18:41:52 -07:00
\]
endif
" 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
2023-05-30 20:30:57 -07:00
" Set location of viminfo file
set viminfo+=n~/.config/vim/viminfo
2023-07-17 23:35:49 -07:00
silent! call plug#begin()
Plug '~/.config/vim/plugged/ale'
Plug '~/.config/vim/plugged/copilot.vim'
Plug '~/.config/vim/plugged/dockerfile.vim'
Plug '~/.config/vim/plugged/editorconfig-vim'
Plug '~/.config/vim/plugged/fzf.vim'
Plug '~/.config/vim/plugged/fzf'
Plug '~/.config/vim/plugged/lightline.vim'
Plug '~/.config/vim/plugged/nerdtree'
Plug '~/.config/vim/plugged/php.vim'
Plug '~/.config/vim/plugged/python-syntax'
Plug '~/.config/vim/plugged/syntastic'
Plug '~/.config/vim/plugged/typescript-vim'
Plug '~/.config/vim/plugged/vim-airline'
Plug '~/.config/vim/plugged/vim-carbon-now-sh'
Plug '~/.config/vim/plugged/vim-devicons'
Plug '~/.config/vim/plugged/vim-five'
Plug '~/.config/vim/plugged/vim-go'
Plug '~/.config/vim/plugged/vim-javascript'
Plug '~/.config/vim/plugged/vim-jsx'
Plug '~/.config/vim/plugged/vim-markdown'
Plug '~/.config/vim/plugged/vim-multiple-cursors'
Plug '~/.config/vim/plugged/vim-prettier'
Plug '~/.config/vim/plugged/vim-sensible'
Plug '~/.config/vim/plugged/vim-surround'
Plug '~/.config/vim/plugged/vimgutter'
Plug '~/.config/vim/plugged/zoxide.vim'
if executable('node')
Plug '~/.config/vim/plugged/coc.nvim'
endif
Plug '~/.config/vim/plugged/ansible-vim', {'do': './UltiSnips/generate.sh'}
call plug#end()