diff options
Diffstat (limited to '.config/nvim/lua/mango')
-rw-r--r-- | .config/nvim/lua/mango/set.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 73f4dc6..ef51683 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -49,6 +49,13 @@ api.nvim_create_autocmd('BufEnter', { group = augroup, }) +api.nvim_create_autocmd('FocusGained', { + callback = function() + vim.cmd('checktime') + end, + group = augroup, +}) + opt.foldmethod = 'expr' opt.foldexpr = 'nvim_treesitter#foldexpr()' |