diff --git a/nvim/init.vim b/nvim/init.vim index d67fb0f..a0ae056 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -90,6 +90,7 @@ Plug 'lifepillar/pgsql.vim' Plug 'purescript-contrib/purescript-vim' Plug 'mbbill/undotree' Plug 'milkypostman/vim-togglelist' +Plug 'jpalardy/vim-slime' " Initialize plugin system call plug#end() @@ -225,6 +226,10 @@ nnoremap te :vsp :terminal " Tab navigation shortcuts nnoremap tn :bn nnoremap tp :bp +nnoremap tj :echo b:terminal_job_id +nnoremap tc :SlimeConfig +xmap ts SlimeRegionSend +nmap ts SlimeParagraphSend " Reload opened vim config file nnoremap vr :so % " For git @@ -452,6 +457,12 @@ let g:workspace_session_disable_on_args = 1 let g:comfortable_motion_scroll_down_key = "j" let g:comfortable_motion_scroll_up_key = "k" let g:toggle_list_no_mappings = 1 +" Slime +let g:slime_target = "neovim" +let g:slime_no_mappings = 1 +let g:slime_python_ipython = 1 +let g:slime_dont_ask_default = 1 +let g:slime_preserve_curpos = 0 " Default indentations autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2