starter/lua/mj/globals.lua

19 lines
345 B
Lua
Raw Normal View History

2024-06-07 02:44:06 +08:00
local M = {}
local runner = require("mj.command_runner")
function RunInTerminal(cmd, open_new_tab)
runner.run_in_terminal(cmd, open_new_tab)
end
function RunShellTest()
RunInTerminal("./shell_test", true)
end
function RunRubocop()
local file = vim.fn.expand("%")
RunInTerminal("bundle exec rubocop -A " .. file, false)
end
2024-06-07 03:18:51 +08:00
return M