diff options
author | jgmdev <jgmdev@gmail.com> | 2022-05-24 20:13:57 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-24 20:13:57 -0400 |
commit | 5faa8d330663d7a3b5b5ada2dc036cf8b7a1749d (patch) | |
tree | f74994ea6c97e25717de51ba6de059802dd044dc /plugins/rainbowparen.lua | |
parent | ef4088437c664637fcd4a73d342beeacdebec180 (diff) | |
download | lite-xl-plugins-5faa8d330663d7a3b5b5ada2dc036cf8b7a1749d.tar.gz lite-xl-plugins-5faa8d330663d7a3b5b5ada2dc036cf8b7a1749d.zip |
renamed enable to enabled to match all plugins
Diffstat (limited to 'plugins/rainbowparen.lua')
-rw-r--r-- | plugins/rainbowparen.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rainbowparen.lua b/plugins/rainbowparen.lua index 1df56ed..04cdfaf 100644 --- a/plugins/rainbowparen.lua +++ b/plugins/rainbowparen.lua @@ -8,7 +8,7 @@ local tokenizer = require "core.tokenizer" local Highlighter = require "core.doc.highlighter" config.plugins.rainbowparen = common.merge({ - enable = true + enabled = true }, config.plugins.rainbowparen) style.syntax.paren_unbalanced = style.syntax.paren_unbalanced or { common.color "#DC0408" } @@ -30,7 +30,7 @@ local function parenstyle(parenstack) end function tokenizer.tokenize(syntax, text, state) - if not config.plugins.rainbowparen.enable then + if not config.plugins.rainbowparen.enabled then return tokenize(syntax, text, state) end state = state or {} @@ -72,7 +72,7 @@ function tokenizer.tokenize(syntax, text, state) end local function toggle_rainbowparen(enabled) - config.plugins.rainbowparen.enable = enabled + config.plugins.rainbowparen.enabled = enabled for _, doc in ipairs(core.docs) do doc.highlighter = Highlighter(doc) doc:reset_syntax() @@ -85,7 +85,7 @@ config.plugins.rainbowparen.config_spec = { { label = "Enable", description = "Activates rainbow parenthesis coloring by default.", - path = "enable", + path = "enabled", type = "toggle", default = true, on_apply = function(enabled) @@ -96,6 +96,6 @@ config.plugins.rainbowparen.config_spec = { command.add(nil, { ["rainbow-parentheses:toggle"] = function() - toggle_rainbowparen(not config.plugins.rainbowparen.enable) + toggle_rainbowparen(not config.plugins.rainbowparen.enabled) end }) |