Skip to content

Commit

Permalink
feat(neovim): only run certain autocmds on personal mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aai-oli committed Dec 4, 2024
1 parent aad7b7c commit 6347e3e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .config/nvim/lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ return {
{
{ "VimEnter" },
function()
local timer = vim.loop.new_timer()
timer:start(0, 120000, function()
om.GitRemoteSync()
end)
if _G.om.on_personal then
local timer = vim.loop.new_timer()
timer:start(0, 120000, function()
om.GitRemoteSync()
end)
end
end,
opts = {
pattern = { "*" },
Expand Down

0 comments on commit 6347e3e

Please sign in to comment.