noremap f :Autoformat imap //< (codelines-close) map cl :call jobstart(['codelines', '.']) nnoremap K :call show_documentation() function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) execute 'h '.expand('') else call CocAction('doHover') endif endfunction " Toggle panel with Tree Views nnoremap t :CocCommand metals.tvp " Toggle Tree View 'metalsPackages' nnoremap tp :CocCommand metals.tvp metalsPackages " Toggle Tree View 'metalsCompile' nnoremap tc :CocCommand metals.tvp metalsCompile " Toggle Tree View 'metalsBuild' nnoremap tb :CocCommand metals.tvp metalsBuild " Reveal current current class (trait or object) in Tree View 'metalsPackages' nnoremap tf :CocCommand metals.revealInTreeView metalsPackages set tw=120