nvim: Add vim-floaterm

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-02-27 09:29:33 +05:30
parent cfc5dfbde3
commit edfd027067

View file

@ -99,6 +99,7 @@ Plug 'milkypostman/vim-togglelist'
Plug 'liuchengxu/vim-which-key'
Plug 'farmergreg/vim-lastplace'
Plug 'ronakg/quickr-preview.vim'
Plug 'voldikss/vim-floaterm'
" Initialize plugin system
call plug#end()
@ -238,8 +239,11 @@ nnoremap [b :bprevious<CR>
nnoremap ]b :bnext<CR>
nnoremap [B :bfirst<CR>
nnoremap ]B :blast<CR>
" Terminal
nnoremap <Leader>te :vsp<CR> :terminal<CR>
" For floating terminal
nnoremap se :FloatermNew<CR>
nnoremap [s :FloatermPrev<CR>
nnoremap ]s :FloatermNext<CR>
nnoremap st :FloatermToggle<CR>
" For git
nnoremap <Leader>gm :GitMessenger<CR>
nnoremap <Leader>gl :0Glog<CR>
@ -694,6 +698,14 @@ let g:loaded_node_provider = 0
let g:mergetool_layout = 'mr'
let g:mergetool_prefer_revision = 'unmodified'
" Floaterm
let g:floaterm_open_in_root = 1
let g:floaterm_position = 'center'
let g:floaterm_width = 0.8
let g:floaterm_height = 0.8
let g:floaterm_winblend = 0
let g:floaterm_borderchars = ['─', '│', '─', '│', '╭', '╮', '╯', '╰']
" ----------------------------- Functions ------------------------------------
function! NvimGdbNoTKeymaps()
tnoremap <silent> <buffer> <Esc> <C-\><C-n>