wesnoth/utils/emmylua/config.lua
Celtic Minstrel e1300e29b0
Lua API: Add inline documentation for pretty much everything and convert existing docs (#6483)
The new format is EmmyLua-based and can be used with (at least) Visual Studio Code.
2022-02-17 13:43:31 -05:00

73 lines
1.6 KiB
Lua

---@meta
-- This file contains settings for the Lua add-on in Visual Studio Code
-- It's supposed to allow the add-on to automatically detect the correct settings,
-- but I'm not quite sure how to make that work.
name = 'Wesnoth'
words = {'wesnoth', 'wml'}
configs = {
{
key = 'Lua.runtime.version',
action = 'set',
value = '5.4'
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'wesnoth'
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'wml'
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'gui'
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'filesystem'
},
{
key = 'Lua.runtime.special',
action = 'prop',
prop = 'wesnoth.require',
value = 'require'
},
{
key = 'Lua.runtime.path',
action = 'add',
value = 'data/core/lua/?.lua'
},
{
key = 'Lua.runtime.path',
action = 'add',
value = 'data/?.lua'
},
{
key = 'Lua.runtime.builtin',
action = 'prop',
prop = 'io',
value = 'disable',
},
{
key = 'Lua.runtime.builtin',
action = 'prop',
prop = 'debug',
value = 'disable',
},
{
key = 'Lua.runtime.builtin',
action = 'prop',
prop = 'os',
value = 'disable',
},
{
key = 'Lua.runtime.builtin',
action = 'prop',
prop = 'package',
value = 'disable'
}
}