From 219a8c3e81add8c367a2a08cb344e5b45e55738b Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 7 Jul 2022 21:59:04 +0200 Subject: [PATCH] fixed autocommand for checktime --- lua/my_autocommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/my_autocommands.lua b/lua/my_autocommands.lua index 3c8b63a..c79642c 100644 --- a/lua/my_autocommands.lua +++ b/lua/my_autocommands.lua @@ -63,7 +63,7 @@ api.nvim_create_autocmd({ 'FocusGained' }, { command = [[rshada]] }) -- ) -- Check if we need to reload the file when it changed -api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' }, { command = [[:checktime]] }) +api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' }, { command = [[if !bufexists("[Command Line]") | checktime | endif]] }) -- windows to close with "q" api.nvim_create_autocmd(