From aff351a1f12227622948bda2f2a093363e80e084 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 10:46:39 +0200 Subject: Route Visual contexts --- lua/clever_f/motion_executor.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/clever_f/motion_executor.lua (limited to 'lua/clever_f') diff --git a/lua/clever_f/motion_executor.lua b/lua/clever_f/motion_executor.lua new file mode 100644 index 0000000..198534b --- /dev/null +++ b/lua/clever_f/motion_executor.lua @@ -0,0 +1,18 @@ +local domain = require("clever_f.domain") + +local M = {} + +M.ExecutionPath = { + VISUAL = "visual", + COMMAND = "command", +} + +function M.execution_path(context) + context = domain.ModeContext.from_full_mode(context) + if context.visual_kind ~= nil then + return M.ExecutionPath.VISUAL + end + return nil +end + +return M -- cgit v1.2.3