|
|
|
|
@ -18,11 +18,14 @@ |
|
|
|
|
|
|
|
|
|
" only use copilot on Mac |
|
|
|
|
let s:usecopilot = 0 |
|
|
|
|
let s:usejedi = 0 |
|
|
|
|
if has('mac') |
|
|
|
|
" only enable when not on vpn |
|
|
|
|
let s:route = system("netstat -nr | grep 'default.*tun' | head -1") |
|
|
|
|
if s:route != "" |
|
|
|
|
let s:usecopilot = 1 |
|
|
|
|
endif |
|
|
|
|
let s:usejedi = 1 |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -42,17 +45,22 @@ Plug 'vim-airline/vim-airline-themes' |
|
|
|
|
Plug 'bling/vim-bufferline' |
|
|
|
|
Plug 'tpope/vim-characterize' |
|
|
|
|
Plug 'tpope/vim-endwise' |
|
|
|
|
Plug 'doums/darcula' " pycharm scheme reproduction |
|
|
|
|
|
|
|
|
|
if s:usecopilot == 1 |
|
|
|
|
Plug 'github/copilot.vim', { 'on': 'Copilot' } |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
if s:usejedi == 1 |
|
|
|
|
Plug 'davidhalter/jedi-vim' |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
Plug 'frankier/neovim-colors-solarized-truecolor-only' |
|
|
|
|
|
|
|
|
|
call plug#end() |
|
|
|
|
|
|
|
|
|
let g:airline_solarized_bg='dark' |
|
|
|
|
let g:airline_theme='solarized' |
|
|
|
|
" let g:airline_solarized_bg='dark' |
|
|
|
|
" let g:airline_theme='solarized' |
|
|
|
|
|
|
|
|
|
" let g:syntastic_<filetype>_checkers = ['<checker-name>'] |
|
|
|
|
let g:syntastic_yaml_checkers = ['yamllint'] |
|
|
|
|
@ -97,7 +105,8 @@ endif |
|
|
|
|
" solarized config |
|
|
|
|
set termguicolors |
|
|
|
|
set background=dark " or light |
|
|
|
|
colorscheme solarized" |
|
|
|
|
" colorscheme solarized |
|
|
|
|
colorscheme darcula |
|
|
|
|
hi Visual term=reverse cterm=reverse guibg=Grey |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|