Added in sample plugin and tested things out. Works.

This commit is contained in:
Adam Harrison
2021-09-14 00:13:30 -04:00
parent a66a76f9c9
commit e9f48ce949
6 changed files with 37 additions and 9 deletions
+2 -1
View File
@@ -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 = {
+1
View File
@@ -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