From 152fd6c66c6b8c9d8ac0e6deba3138f328237c06 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 20 Jul 2021 15:09:14 -0400 Subject: [PATCH] Fixed doc, and fixed plugin load. --- data/core/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/core/init.lua b/data/core/init.lua index 9bdbb36c..c68c487b 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -342,11 +342,11 @@ local style = require "core.style" -- enable or disable plugin loading setting config entries: --- enable trimwhitespace, otherwise it is disable by default: --- config.trimwhitespace = true +-- enable plugins.trimwhitespace, otherwise it is disable by default: +-- config.plugins.trimwhitespace = true -- -- disable detectindent, otherwise it is enabled by default --- config.detectindent = false +-- config.plugins.detectindent = false ]]) init_file:close() end @@ -693,7 +693,7 @@ function core.load_plugins() local list = refused_list[plugin_dir:find(USERDIR) == 1 and 'userdir' or 'datadir'].plugins table.insert(list, filename) end - if version_match and core.plugins[basename] ~= false then + if version_match and config.plugins[basename] ~= false then local ok = core.try(require, "plugins." .. basename) if ok then core.log_quiet("Loaded plugin %q from %s", basename, plugin_dir) end if not ok then