Added in sample plugin and tested things out. Works.
This commit is contained in:
+2
-1
@@ -426,6 +426,8 @@ function core.init()
|
||||
NagView = require "core.nagview"
|
||||
DocView = require "core.docview"
|
||||
Doc = require "core.doc"
|
||||
local PluginTest = require "plugins.sample"
|
||||
print(PluginTest.example)
|
||||
|
||||
if PATHSEP == '\\' then
|
||||
USERDIR = common.normalize_path(USERDIR)
|
||||
@@ -675,7 +677,6 @@ local function check_plugin_version(filename)
|
||||
return true, version_match
|
||||
end
|
||||
|
||||
|
||||
function core.load_plugins()
|
||||
local no_errors = true
|
||||
local refused_list = {
|
||||
|
||||
@@ -19,4 +19,5 @@ package.path = DATADIR .. '/?.lua;' .. package.path
|
||||
package.path = DATADIR .. '/?/init.lua;' .. package.path
|
||||
package.path = USERDIR .. '/?.lua;' .. package.path
|
||||
package.path = USERDIR .. '/?/init.lua;' .. package.path
|
||||
package.cpath = DATADIR .. '/?.' .. (MACOS and 'lib' or (WINDOWS and 'dll' or 'so')) .. ';' .. package.cpath
|
||||
package.searchers[3] = system.searcher_plugin
|
||||
|
||||
Reference in New Issue
Block a user