aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/commands.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index 53d7f0dd..b55e2f76 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -6,6 +6,15 @@ local textadept = _G.textadept
-- Commands for the lua module.
module('_m.lua.commands', package.seeall)
+local run = _m.textadept.run
+if run then
+ run.run_command.lua = 'lua %(filename)'
+ run.error_detail.lua = {
+ pattern = '^lua: (.-):(%d+): (.+)$',
+ filename = 1, line = 2, message = 3
+ }
+end
+
---
-- Patterns for auto 'end' completion for control structures.
-- @class table