This file contains hidden or 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
/* Save the file to $VIMCONFIG/coc-extensions for both vim & neovim | |
This is no longer True: Usage: xmap <silent> <TAB> <Plug>(coc-repl-sendtext) | |
instead use below in .vimrc or init.vim: | |
autocmd FileType scala vmap <silent> <localleader>\ mY:CocCommand repl.sendtext<CR>'Yj | |
autocmd Filetype scala imap <localleader>\ <Esc>0v$:CocCommand repl.sendtext<CR>j | |
autocmd Filetype scala nmap <localleader>\ 0v$:CocCommand repl.sendtext<CR>j | |
autocmd FileType scala nnoremap <leader>r :CocCommand repl.openTerminal<CR> | |
autocmd FileType scala nnoremap <localeader>r :CocCommand repl.disposeTerminal<CR> | |
customization at both ends make this much more pleasant |