Created
May 24, 2018 16:10
-
-
Save cb372/c25262739b0232379f617f102547a773 to your computer and use it in GitHub Desktop.
Neovim setup for Scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" deoplete plugin for autocomplete | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
" autotag plugin to automatically generate ctags file | |
Plug 'craigemery/vim-autotag' | |
" ctags stuff | |
set tags=.tags | |
let g:autotagTagsFile=".tags" | |
map <C-o> :CtrlPTag<CR> | |
map <C-i> :TagbarToggle<CR> | |
" Regenerate tags file | |
map <C-u> :!ctags -R -f ./.tags .<CR> | |
let g:tagbar_type_scala = { | |
\ 'ctagstype' : 'scala', | |
\ 'sro' : '.', | |
\ 'kinds' : [ | |
\ 'p:packages', | |
\ 'T:types:1', | |
\ 't:traits', | |
\ 'o:objects', | |
\ 'O:case objects', | |
\ 'c:classes', | |
\ 'C:case classes', | |
\ 'm:methods', | |
\ 'V:values:1', | |
\ 'v:variables:1' | |
\ ] | |
\ } | |
" deoplete stuff | |
let g:deoplete#enable_at_startup = 1 | |
" Remap <tab> to allow cycling through the deoplete list, but only when the | |
" deoplete list window is open. Leave <tab> alone the rest of the time. | |
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" | |
" Here's the complete list of my neovim plugins, in case you're interested | |
" General | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'bronson/vim-trailing-whitespace' | |
Plug 'tpope/vim-unimpaired' | |
Plug 'godlygeek/tabular' | |
Plug 'sbdchd/neoformat' | |
Plug 'neomake/neomake' | |
Plug 'luochen1990/rainbow' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'mattn/emmet-vim' | |
Plug 'justinmk/vim-sneak' | |
Plug 'embear/vim-localvimrc' | |
" Filesystem/search | |
Plug 'scrooloose/nerdtree' | |
Plug 'ctrlpvim/ctrlp.vim' | |
" Tags | |
Plug 'majutsushi/tagbar' | |
Plug 'craigemery/vim-autotag' | |
" Git | |
Plug 'airblade/vim-gitgutter' | |
Plug 'tpope/vim-fugitive' | |
" Haskell | |
Plug 'parsonsmatt/intero-neovim' | |
Plug 'neovimhaskell/haskell-vim', { 'for': 'haskell' } | |
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment