From bf9f97ced5b297f66c4aed1a03b349adbb1225d9 Mon Sep 17 00:00:00 2001 From: Shidong Wang Date: Sun, 12 Jul 2020 21:39:35 +0800 Subject: [PATCH] Make notification focusable false --- autoload/SpaceVim/api/notification.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/api/notification.vim b/autoload/SpaceVim/api/notification.vim index 6092d4e9b..495698736 100644 --- a/autoload/SpaceVim/api/notification.vim +++ b/autoload/SpaceVim/api/notification.vim @@ -97,6 +97,7 @@ function! s:self.notification(msg, color) abort \ 'height' : len(s:shown), \ 'row': 3, \ 'highlight' : a:color, + \ 'focusable' : v:false, \ 'col': &columns - strwidth(a:msg) - 1, \ }) call self.__floating.win_config(self.border.winid, @@ -107,6 +108,7 @@ function! s:self.notification(msg, color) abort \ 'row': 2, \ 'col': &columns - strwidth(a:msg) - 2, \ 'highlight' : 'VertSplit', + \ 'focusable' : v:false, \ }) else let self.winid = self.__floating.open_win(self.bufnr, v:false, @@ -116,7 +118,8 @@ function! s:self.notification(msg, color) abort \ 'height' : len(s:shown), \ 'row': 3, \ 'highlight' : a:color, - \ 'col': &columns - strwidth(a:msg) - 1 + \ 'col': &columns - strwidth(a:msg) - 1, + \ 'focusable' : v:false, \ }) let self.border.winid = self.__floating.open_win(self.border.bufnr, v:false, \ { @@ -126,6 +129,7 @@ function! s:self.notification(msg, color) abort \ 'row': 2, \ 'col': &columns - strwidth(a:msg) - 2, \ 'highlight' : 'VertSplit', + \ 'focusable' : v:false, \ }) let self.win_is_open = v:true endif