Add metals bindings for scala

This commit is contained in:
Alexander Gehrke 2021-07-02 10:44:29 +02:00
parent 0ab1c78d95
commit d193beaae7

View file

@ -13,6 +13,15 @@ function! s:show_documentation()
endif endif
endfunction endfunction
au BufWritePost *.scala Neomake! " Toggle panel with Tree Views
nnoremap <silent> <space>t :<C-u>CocCommand metals.tvp<CR>
" Toggle Tree View 'metalsPackages'
nnoremap <silent> <space>tp :<C-u>CocCommand metals.tvp metalsPackages<CR>
" Toggle Tree View 'metalsCompile'
nnoremap <silent> <space>tc :<C-u>CocCommand metals.tvp metalsCompile<CR>
" Toggle Tree View 'metalsBuild'
nnoremap <silent> <space>tb :<C-u>CocCommand metals.tvp metalsBuild<CR>
" Reveal current current class (trait or object) in Tree View 'metalsPackages'
nnoremap <silent> <space>tf :<C-u>CocCommand metals.revealInTreeView metalsPackages<CR>
set tw=120 set tw=120