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(