From 42a0663184cb356d4e662956a2b8f04c3b38007b Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 20 Aug 2021 01:12:35 +0800 Subject: Reduce timeout for nvim-notify --- core/ui.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/ui.vim') diff --git a/core/ui.vim b/core/ui.vim index a81a025..a1723f0 100644 --- a/core/ui.vim +++ b/core/ui.vim @@ -70,7 +70,8 @@ let s:colorscheme_func = printf('s:my_theme_dict.%s()', s:theme) if has_key(s:my_theme_dict, s:theme) execute 'call ' . s:colorscheme_func else - call v:lua.vim.notify('Invalid colorscheme function: ' . s:colorscheme_func, 'error', {'title': 'nvim-config'}) + let s:msg = "Invalid colorscheme function: " . s:colorscheme_func + call v:lua.vim.notify(s:msg, 'error', {'title': 'nvim-config', 'timeout': 2500}) endif "}} "} -- cgit v1.2.3