summaryrefslogtreecommitdiff
path: root/lua/clever_f/motion_executor.lua
blob: 212a362048aa9be43fe04bfe41ee00fe34b448eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 M.ExecutionPath.COMMAND
end

return M