summaryrefslogtreecommitdiff
path: root/lua/clever_f
diff options
context:
space:
mode:
Diffstat (limited to 'lua/clever_f')
-rw-r--r--lua/clever_f/motion_executor.lua18
1 files changed, 18 insertions, 0 deletions
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