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-07-18 11:27:07 -07:00
|
|
|
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'
|
|
|
|
]
|
2023-05-06 18:41:52 -07:00
|
|
|
|
|
|
|
" 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')
|
|
|
|
|
2022-12-06 11:28:34 -08:00
|
|
|
syntax enable
|
|
|
|
set background=dark
|
|
|
|
colorscheme Betelgeuse
|
2023-07-18 11:27:07 -07:00
|
|
|
set g:lightline = { 'colorscheme': 'Betelgeuse' }
|
2022-12-06 11:28:34 -08:00
|
|
|
|
|
|
|
" 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
|
2023-07-18 11:27:07 -07:00
|
|
|
set viminfo="$HOME/.config/vim/viminfo"
|
2023-05-30 20:30:57 -07:00
|
|
|
|
2023-07-17 23:35:49 -07:00
|
|
|
silent! call plug#begin()
|
2023-07-18 11:27:07 -07:00
|
|
|
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"}
|
2023-07-17 23:35:49 -07:00
|
|
|
call plug#end()
|
|
|
|
|