Fix #30 – user plugins take priority over built-in plugins (#73)

user plugins should take priority over stock plugins
This commit is contained in:
liquidev
2021-03-03 12:20:22 +01:00
committed by GitHub
parent 8883685eea
commit 2e1a6ad5d1
2 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ local prefix = EXEDIR:match("^(.+)[/\\]bin$")
DATADIR = prefix and (prefix .. '/share/lite-xl') or (EXEDIR .. '/data')
USERDIR = HOME and (HOME .. '/.config/lite-xl') or (EXEDIR .. '/user')
package.path = package.path .. ';' .. USERDIR .. '/?.lua'
package.path = package.path .. ';' .. USERDIR .. '/?/init.lua'
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