Updated neovim config

This commit is contained in:
Jef Roosens 2021-04-22 00:33:26 +02:00
parent ed8e52b480
commit 2d36cb3c69
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
3 changed files with 26 additions and 8 deletions

View file

@ -935,7 +935,7 @@ function! s:prepare(...)
call s:new_window()
endif
nnoremap <silent> <buffer> q :if b:plug_preview==1<bar>pc<bar>endif<bar>bd<cr>
nnoremap <silent> <buffer> q :call <SID>close_pane()<cr>
if a:0 == 0
call s:finish_bindings()
endif
@ -957,6 +957,15 @@ function! s:prepare(...)
endif
endfunction
function! s:close_pane()
if b:plug_preview == 1
pc
let b:plug_preview = -1
else
bd
endif
endfunction
function! s:assign_name()
" Assign buffer name
let prefix = '[Plugins]'