nvim: neoterm: init

This commit is contained in:
Grigory Shipunov 2021-10-22 13:27:13 +02:00
parent a04dadf4ea
commit 540a73148c
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C

View file

@ -19,6 +19,9 @@ Plug 'neovim/nvim-lspconfig'
" Colors " Colors
Plug 'jeffkreeftmeijer/vim-dim' Plug 'jeffkreeftmeijer/vim-dim'
" Slimey stuff
Plug 'kassio/neoterm'
call plug#end() call plug#end()
" Incrementally show effects of :s, :smagic, :snomagic " Incrementally show effects of :s, :smagic, :snomagic
@ -93,3 +96,13 @@ let g:tex_conceal = ''
" vim-pandoc really tries to be 'user-friendly'... " vim-pandoc really tries to be 'user-friendly'...
let g:pandoc#modules#disabled = [ "spell", "folding" ] let g:pandoc#modules#disabled = [ "spell", "folding" ]
" neoterm
let g:neoterm_default_mod='belowright' " open terminal in bottom split
let g:neoterm_size=19 " terminal split size
let g:neoterm_autoscroll=1 " scroll to the bottom when running a command
" REPL interaction
nnoremap <leader><cr> :TREPLSendLine<cr>j
vnoremap <leader><cr> :TREPLSendSelection<cr>
" R REPL
nnoremap <leader>tr :T R<cr>