diff options
author | 2020-02-22 19:54:25 -0500 | |
---|---|---|
committer | 2020-02-22 19:54:25 -0500 | |
commit | 132d331c8612421a8f95a8b73572b49e27ee38b9 (patch) | |
tree | 81b25b7b012e665bd68e2ebe94f8553243f355a6 /init.lua | |
parent | 5b2511834db13d21724314c20be06aa71afdee2b (diff) | |
download | textadept-132d331c8612421a8f95a8b73572b49e27ee38b9.tar.gz textadept-132d331c8612421a8f95a8b73572b49e27ee38b9.zip |
Separated `_G.snippets` from `textadept.snippets`.
Removed leading '_' from snippet methods, but kept compatibility for now.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,10 @@ package.cpath = table.concat({ textadept = require('textadept') +-- Temporary compatibility. +setmetatable(_L, {__index = function(t, k) return rawget(t, k:gsub('_', '')) or 'No Localization:'..k end}) +setmetatable(textadept.snippets, {__index = function(t, k) return rawget(t, k:gsub('^_', '')) end}) + -- Documentation is in core/.buffer.luadoc. local function set_theme(buffer, name, props) name = name:find('[/\\]') and name or |