From 4f82b1fca65b50f7956f61c984d6993eb90b36e1 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 10 Aug 2026 17:10:03 -0400 Subject: [PATCH] feat(core): eagerly load Yazi session module for remote edit support --- lua/polish.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/polish.lua b/lua/polish.lua index ef09175..3c9dd70 100644 --- a/lua/polish.lua +++ b/lua/polish.lua @@ -16,3 +16,8 @@ if ok then desc = "Previous reference", }) end + +-- Define _G.EditFromYazi eagerly: the yazi opener (~/.local/bin/yazi-nvim-open) +-- calls it via --remote-expr from ANY yazi running in an nvim terminal, even +-- one started before the session keymaps ever fired. +require "config.yazi_session"