aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/lua/init.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-24 17:41:51 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-24 17:41:51 -0400
commite192e73a92eb896f9c8623d11a8c49ebbcb4c291 (patch)
tree7c09774b3fa143126e8373c2a0c3d901f3e7273c /modules/lua/init.lua
parent282c7dd9fe5c903a4620d41c9498153e83867119 (diff)
Removed '_G' prefix from globals where necessary.
Diffstat (limited to 'modules/lua/init.lua')
-rw-r--r--modules/lua/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua
index cf43934e..198aed3c 100644
--- a/modules/lua/init.lua
+++ b/modules/lua/init.lua
@@ -170,7 +170,7 @@ events.connect(events.FILE_AFTER_SAVE,
-- Container for Lua-specific key commands.
-- @class table
-- @name _G.keys.lua
-_G.keys.lua = {
+keys.lua = {
al = {
m = { io.open_file,
(_HOME..'/modules/lua/init.lua'):iconv('UTF-8', _CHARSET) },
@@ -183,12 +183,12 @@ _G.keys.lua = {
-- Snippets.
-if type(_G.snippets) == 'table' then
+if type(snippets) == 'table' then
---
-- Container for Lua-specific snippets.
-- @class table
-- @name _G.snippets.lua
- _G.snippets.lua = {
+ snippets.lua = {
l = "local %1(expr)%2( = %3(value))",
p = "print(%0)",
f = "function %1(name)(%2(args))\n\t%0\nend",