From 91239ec0fc1f93632ec28eab762cbe905105b65a Mon Sep 17 00:00:00 2001 From: Steffen Rademacker Date: Thu, 4 Mar 2021 10:40:49 +0100 Subject: [PATCH] Updates --- nvim/autoload/plug.vim | 11 ++++++++++- zsh/zsh-completions | 2 +- zsh/zsh-syntax-highlighting | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/nvim/autoload/plug.vim b/nvim/autoload/plug.vim index 9c296ace..2b89b5a6 100644 --- a/nvim/autoload/plug.vim +++ b/nvim/autoload/plug.vim @@ -935,7 +935,7 @@ function! s:prepare(...) call s:new_window() endif - nnoremap q :if b:plug_preview==1pcendifbd + nnoremap q :call close_pane() 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]' diff --git a/zsh/zsh-completions b/zsh/zsh-completions index c7baec49..aa98bc59 160000 --- a/zsh/zsh-completions +++ b/zsh/zsh-completions @@ -1 +1 @@ -Subproject commit c7baec49d3e044121f7a37b65a84461ef8dac2de +Subproject commit aa98bc593fee3fbdaf1acedc42a142f3c4134079 diff --git a/zsh/zsh-syntax-highlighting b/zsh/zsh-syntax-highlighting index 5eb49485..205bc7ea 160000 --- a/zsh/zsh-syntax-highlighting +++ b/zsh/zsh-syntax-highlighting @@ -1 +1 @@ -Subproject commit 5eb494852ebb99cf5c2c2bffee6b74e6f1bf38d0 +Subproject commit 205bc7ea199cfd4cded51d465baad63b3d7f3aad