diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-07-26 18:12:28 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-07-26 18:12:28 -0500 |
commit | 86ab4702891c3b889ff1005fdf90e6457de106bf (patch) | |
tree | bd5fe10203bfe56929768dc81d1f1552c6bd39f4 | |
parent | 3ba9ae5cc61ff1522d4aeec7f0ff7f721cf7d06b (diff) |
fix(nvim): fix presence not being set on session load
-rw-r--r-- | nvim/.config/nvim/lua/plugins/presence.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/presence.lua b/nvim/.config/nvim/lua/plugins/presence.lua index 63e83c1..e84b3eb 100644 --- a/nvim/.config/nvim/lua/plugins/presence.lua +++ b/nvim/.config/nvim/lua/plugins/presence.lua @@ -7,6 +7,12 @@ local M = { function M:config(opts) require("presence").setup(opts) + vim.api.nvim_create_autocmd("SessionLoadPost", { + callback = function() + require("presence"):handle_win_enter() + end, + }) + vim.api.nvim_create_autocmd("FocusLost", { group = vim.api.nvim_create_augroup("tobyvin.presence_idle", { clear = true }), callback = function() |