Skip to content

Instantly share code, notes, and snippets.

View shy00n's full-sized avatar

Hoon shy00n

  • Mor Analytics
  • Virtually & in EST zone
View GitHub Profile
@shy00n
shy00n / repl.js
Last active November 29, 2020 15:31 — forked from chemzqm/repl.js
repl with coc.nvim
/* 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