summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-04-10 13:08:34 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-04-10 13:08:34 +0200
commitaecb8c8cab4583d656b65b46ede76b4c5e34359c (patch)
tree8c94b215fe75e1201082c726d252769034ac0b49
parent977db509ca181fccd81341a4a7e6cddbe5ee0d40 (diff)
nvim: REPL + Guix plugins
-rw-r--r--nvim/nvim/init.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim
index 8607631..f8a0938 100644
--- a/nvim/nvim/init.vim
+++ b/nvim/nvim/init.vim
@@ -40,6 +40,12 @@ Plugin 'powerman/vim-plugin-ruscmd.git'
" Recutils support
Plugin 'zaid/vim-rec'
+" Guix
+Plugin 'https://gitlab.com/Efraim/guix.vim'
+
+" Repl
+Plugin 'https://gitlab.com/HiPhish/repl.nvim.git'
+
" Common-Lisp
" Plugin 'vlime/vlime', {'rtp': 'vim/'}
@@ -185,6 +191,17 @@ highlight ColorColumn ctermbg=DarkGrey guibg=#262626
:tnoremap <F1> <C-\><C-n>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" REPL: repl.vim:
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Send the text of a motion to the REPL
+nmap <leader>rs <Plug>(ReplSend)
+" Send the current line to the REPL
+nmap <leader>rss <Plug>(ReplSendLine)
+nmap <leader>rs_ <Plug>(ReplSendLine)
+" Send the selected text to the REPL
+vmap <leader>rs <Plug>(ReplSend)
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
" Different config for each filetype
filetype plugin on