feat: automatically detect config module changes in or oustside Neovim and reload

This commit is contained in:
Folke Lemaitre 2022-12-03 00:12:49 +01:00
parent fbfa790d46
commit 7b272b6ed6
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 94 additions and 8 deletions

View file

@ -63,7 +63,9 @@ function M.trigger(groups, events, pattern)
end
Util.info(lines)
end
vim.api.nvim_exec_autocmds(autocmd.event, { group = autocmd.group, modeline = false })
Util.try(function()
vim.api.nvim_exec_autocmds(autocmd.event, { group = autocmd.group, modeline = false })
end)
end
end
end