Skip to content

Commit

Permalink
Fix for Atom
Browse files Browse the repository at this point in the history
Allows wedit suggestions in Atom using (starbound-)autocomplete-lua.
  • Loading branch information
Silverfeelin committed Sep 2, 2017
1 parent 0eee256 commit 8f4bc9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/wedit/wedit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ require "/scripts/wedit/taskManager.lua"
--- WEdit table, variables and functions accessed with 'wedit.' are stored here.
-- Configuration values should be accessed with 'wedit.getUserConfigData(key'.
-- Variables in wedit.user are prioritized over wedit.default.
wedit = wedit or {}
if not wedit then
wedit = {}
end

local cfg = root.assetJson("/scripts/wedit/wedit.config")
function wedit.getConfigData(key)
Expand Down

0 comments on commit 8f4bc9f

Please sign in to comment.