From 826efc41fa3cc29112a68f767e5ed2116ea91db4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 3 Nov 2023 18:39:21 +0100 Subject: nvim: Simplify callback --- .config/nvim/lua/mango/set.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 0576e73..3c80c33 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -50,9 +50,7 @@ api.nvim_create_autocmd('BufEnter', { }) api.nvim_create_autocmd('FocusGained', { - callback = function() - vim.cmd('checktime') - end, + command = 'checktime', group = augroup, }) -- cgit v1.2.3