aboutsummaryrefslogtreecommitdiff
path: root/plugins/autowrap.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-03-13 04:36:18 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:16:10 -0400
commit169c778d568fd44017861e0a7e6f310ccc6799c5 (patch)
treebe8b9b8501246dc76e927570b10efe5baadb9ad6 /plugins/autowrap.lua
parentfb40e73fcd01e044ac6c8b9d9fee1230d7a98c93 (diff)
downloadlite-xl-plugins-169c778d568fd44017861e0a7e6f310ccc6799c5.tar.gz
lite-xl-plugins-169c778d568fd44017861e0a7e6f310ccc6799c5.zip
autowrap: show status on toggle
Diffstat (limited to 'plugins/autowrap.lua')
-rw-r--r--plugins/autowrap.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/autowrap.lua b/plugins/autowrap.lua
index e318fd3..8723531 100644
--- a/plugins/autowrap.lua
+++ b/plugins/autowrap.lua
@@ -1,5 +1,5 @@
-- mod-version:3 --lite-xl 2.1
-require "plugins.reflow"
+local core = require "core"
local config = require "core.config"
local command = require "core.command"
local common = require "core.common"
@@ -45,5 +45,10 @@ end
command.add(nil, {
["auto-wrap:toggle"] = function()
config.plugins.autowrap.enable = not config.plugins.autowrap.enable
+ if config.plugins.autowrap.enable then
+ core.log("Auto wrap: on")
+ else
+ core.log("Auto wrap: off")
+ end
end
})