diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-23 01:27:30 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-23 01:27:58 +0200 |
commit | b04ff241e146fa60be4828dc0413dd9fbcd370e1 (patch) | |
tree | 5b58c12df50fde713a1cdbc049d512f1c4993988 /.config | |
parent | bc6b617c39cdbaf19f2de17a1a3f26027a5de359 (diff) |
nvim: Automatically refresh buffers when changed
Diffstat (limited to '.config')
-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()' |