Add configuration for plugins and scala
This commit is contained in:
parent
ef76c7d462
commit
1290798f92
13
after/ftplugin/scala.vim
Normal file
13
after/ftplugin/scala.vim
Normal 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>
|
2
after/plugin/autoformat.vim
Normal file
2
after/plugin/autoformat.vim
Normal 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
7
after/plugin/fzf.vim
Normal 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)
|
Loading…
Reference in a new issue