Add configuration for plugins and scala

This commit is contained in:
crater2150 2018-07-26 09:48:07 +02:00
parent ef76c7d462
commit 1290798f92
3 changed files with 22 additions and 0 deletions

13
after/ftplugin/scala.vim Normal file
View file

@ -0,0 +1,13 @@
"autocmd BufWritePost *.scala silent :EnTypeCheck
nnoremap <M-=> :EnType<CR>
noremap <F3> :EnDeclaration<CR>
noremap gd :EnDeclaration<CR>
noremap gD :EnDeclarationSplit v<CR>
noremap <Leader>o :EnOrganizeImports<CR>
noremap <Leader>i :EnSuggestImport<CR>
noremap <Leader>rr :EnRename<CR>
noremap <Leader>ri :EnInline<CR>
noremap K :EnDocBrowse<CR>
noremap <Leader>f :Autoformat<CR>

View file

@ -0,0 +1,2 @@
let g:formatdef_scalafmt = '"scalafmt --stdin 2>/dev/null"'
let g:formatters_scala = ['scalafmt']

7
after/plugin/fzf.vim Normal file
View file

@ -0,0 +1,7 @@
map gf :GFiles<cr>
map <Leader>gf :Files<cr>
map gb :Buffers<cr>
map gs :GFiles?<cr>
map <Leader>ag :Ag<space>
imap <C-x><M-C-F> <plug>(fzf-complete-file)