nvim: init.vim: Add vim-slime

This commit is contained in:
Sanchayan Maity 2019-12-04 10:42:45 +05:30 committed by Sanchayan Maity
parent fc225d7dd8
commit ec14943f55

View file

@ -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 <Leader>te :vsp<CR> :terminal<CR>
" Tab navigation shortcuts
nnoremap <Leader>tn :bn<CR>
nnoremap <Leader>tp :bp<CR>
nnoremap <Leader>tj :echo b:terminal_job_id<CR>
nnoremap <Leader>tc :SlimeConfig<CR>
xmap <Leader>ts <Plug>SlimeRegionSend
nmap <Leader>ts <Plug>SlimeParagraphSend
" Reload opened vim config file
nnoremap <Leader>vr :so %<CR>
" 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