Namespace plugin-specific configuration settings.
This commit is contained in:
@@ -28,7 +28,9 @@ config.tab_close_button = true
|
||||
|
||||
-- Disable plugin loading setting to false the config entry
|
||||
-- of the same name.
|
||||
config.trimwhitespace = false
|
||||
config.lineguide = false
|
||||
config.plugins = {}
|
||||
|
||||
config.plugins.trimwhitespace = false
|
||||
config.plugins.lineguide = false
|
||||
|
||||
return config
|
||||
|
||||
+1
-1
@@ -712,7 +712,7 @@ function core.load_plugins()
|
||||
local ls = refused_list[root_dir == USERDIR and 'userdir' or 'datadir'].plugins
|
||||
ls[#ls + 1] = filename
|
||||
end
|
||||
if version_match and config[basename] ~= false then
|
||||
if version_match and config.plugins[basename] ~= false then
|
||||
local modname = "plugins." .. basename
|
||||
local ok = core.try(require, modname)
|
||||
if ok then core.log_quiet("Loaded plugin %q from %s", basename, plugin_dir) end
|
||||
|
||||
Reference in New Issue
Block a user