diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:46:39 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:46:39 +0200 |
| commit | aff351a1f12227622948bda2f2a093363e80e084 (patch) | |
| tree | f872b3451c264d98a55d49ee9cebdede266c6d97 /lua/clever_f/motion_executor.lua | |
| parent | b1dad49f9debfbacaec9bf209a1c4673c24c5c39 (diff) | |
Route Visual contexts
Diffstat (limited to 'lua/clever_f/motion_executor.lua')
| -rw-r--r-- | lua/clever_f/motion_executor.lua | 18 |
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 |
