Compare commits

...

5 Commits

Author SHA1 Message Date
Julian Ospald 4bc374c640
Disable ycm completely 2018-10-11 14:54:55 +08:00
Julian Ospald d5490493af
More python stuff 2018-10-11 14:54:47 +08:00
Julian Ospald 2fa24865db
Make rainbow config global 2018-10-11 14:54:16 +08:00
Julian Ospald 2ac0658755
Add gitgutter plugin 2018-10-11 14:53:50 +08:00
Julian Ospald d32bc4751b
Rm unnecessary syntax/filetype thing
I think this also fixed a bug with vim-airline being broken on
initial startup and with rainbow.
2018-10-11 14:52:59 +08:00
4 changed files with 32 additions and 13 deletions

View File

@ -3,10 +3,6 @@ setlocal ts=2 sw=2 expandtab
"set background=light
"set guifont=Neep\ Medium\ Semi-Condensed\ 18
syntax on
filetype plugin indent on
" tags
call CmdAlias('hasktags', '!hasktags -c .<CR>')
@ -184,11 +180,6 @@ nmap <F6> :GhcModType<CR>
let g:neoformat_enabled_haskell = ['brittany']
" rainbow
let g:rainbow_conf = {
\ 'guifgs': ['#DC322F', 'royalblue3', 'darkorange3', 'seagreen3'],
\ 'ctermfgs': ['lightred', 'lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'],
\}
" map <silent> <leader>t <Plug>InteroGenericType

14
after/ftplugin/python.vim Normal file
View File

@ -0,0 +1,14 @@
let g:ale_linters = {'python':['mypy']}
let g:ale_python_mypy_options = '--no-warn-incomplete-stub --ignore-missing-imports'
let g:ale_python_pycodestyle_options = '--ignore=W391'
let g:neoformat_enabled_python = ['autopep8']
augroup fmt
autocmd!
autocmd BufWritePre * undojoin | Neoformat
augroup END
let g:jedi#completions_enabled = 0

View File

@ -158,3 +158,8 @@ inoremap <C-A> <C-O>:call Select()<CR>
nnoremap <leader>ag :call fzf#vim#ag(expand('<cword>'), WithGitRoot())<CR>
nnoremap <leader>tg :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>
" gitgutter
nmap <leader>ggt <Esc>:GitGutterToggle<CR>
nmap <leader>nh <Plug>GitGutterNextHunk
nmap <leader>bh <Plug>GitGutterPrevHunk

17
vimrc
View File

@ -27,7 +27,6 @@ Plug 'Keithbsmiley/swift.vim'
Plug 'majutsushi/tagbar'
Plug 'ternjs/tern_for_vim'
Plug 'xolox/vim-easytags'
Plug 'tpope/vim-fugitive'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'xolox/vim-misc'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
@ -41,14 +40,18 @@ Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
Plug 'sbdchd/neoformat'
" scm
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
" local_vimrc
Plug 'LucHermitte/lh-vim-lib'
Plug 'LucHermitte/local_vimrc'
" completion
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --go-completer --rust-completer --system-boost --system-libclang',
\ 'for': ['c', 'python', 'sh', 'go', 'clojure'],
\ }
" Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --go-completer --rust-completer --system-boost --system-libclang',
" \ 'for': ['c', 'python', 'sh', 'go', 'clojure'],
" \ }
" deoplete for haskell
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins',
@ -126,6 +129,8 @@ Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
" python
Plug 'icedwater/vimpython', { 'for': 'python' }
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
" scala
Plug 'derekwyatt/vim-scala', { 'for': 'scala' }
@ -199,6 +204,10 @@ let g:neosnippet#snippets_directory='~/.vim/custom-snippets'
" rainbow
let g:rainbow_conf = {
\ 'guifgs': ['#DC322F', 'royalblue3', 'darkorange3', 'seagreen3'],
\ 'ctermfgs': ['lightred', 'lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'],
\}
let g:rainbow_active = 1