summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/mango/set.lua7
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()'