nvim: init.vim: Remove Intero

Intero can't even do jump to definition or reliably tell
me the types. Nuke it.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-11-01 22:18:05 +05:30
parent 0dd3456d66
commit bd107791a1

View file

@ -51,7 +51,6 @@ Plug 'junegunn/rainbow_parentheses.vim'
Plug 'Olical/vim-scheme', { 'for': 'scheme', 'on': 'SchemeConnect' }
" Haskell
Plug 'neovimhaskell/haskell-vim', { 'for': [ 'haskell', 'cabal' ] }
Plug 'parsonsmatt/intero-neovim'
Plug 'neomake/neomake'
" For Nix
Plug 'LnL7/vim-nix', { 'for': 'nix' }
@ -218,45 +217,6 @@ noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
augroup interoMaps
au!
" Maps for intero. Restrict to Haskell buffers so the bindings don't collide.
" Background process and window management
au FileType haskell nnoremap <silent> <leader>is :InteroStart<CR>
au FileType haskell nnoremap <silent> <leader>ir :InteroRestart<CR>
au FileType haskell nnoremap <silent> <leader>ik :InteroKill<CR>
" Open intero/GHCi split horizontally
au FileType haskell nnoremap <silent> <leader>io :InteroOpen<CR>
" Open intero/GHCi split vertically
au FileType haskell nnoremap <silent> <leader>iov :InteroOpen<CR><C-W>H
au FileType haskell nnoremap <silent> <leader>ih :InteroHide<CR>
" Reloading (pick one)
" Automatically reload on save
" au BufWritePost *.hs InteroReload
" Manually save and reload
au FileType haskell nnoremap <silent> <leader>wr :w \| :InteroReload<CR>
" Load individual modules
au FileType haskell nnoremap <silent> <leader>il :InteroLoadCurrentModule<CR>
au FileType haskell nnoremap <silent> <leader>if :InteroLoadCurrentFile<CR>
" Type-related information
" Heads up! These next two differ from the rest.
au FileType haskell map <silent> <leader>it <Plug>InteroGenericType
au FileType haskell map <silent> <leader>T <Plug>InteroType
au FileType haskell nnoremap <silent> <leader>iit :InteroTypeInsert<CR>
" Navigation
au FileType haskell nnoremap <silent> <leader>id :InteroGoToDef<CR>
" Managing targets
" Prompts you to enter targets (no silent):
au FileType haskell nnoremap <leader>ist :InteroSetTargets<SPACE>
augroup END
augroup deopleteMaps
au!
" For deoplete Rust
@ -300,19 +260,6 @@ let g:haskell_indent_guard = 2
let g:haskell_indent_case_alternative = 1
let g:cabal_indent_section = 2
" Intero starts automatically. Set this if you'd like to prevent that.
let g:intero_start_immediately = 0
" Enable type information on hover (when holding cursor at point for ~1 second).
let g:intero_type_on_hover = 1
" Change the intero window size; default is 10.
let g:intero_window_size = 75
" Sets the intero window to split vertically; default is horizontal
let g:intero_vertical_split = 1
" Use GHCi backend
let g:intero_backend = {
\ 'command' : 'stack ghci',
\ }
" Use deoplete
let g:deoplete#enable_at_startup = 1
" Disable autocomplete by default