Skip to content

Commit 11d4491

Browse files
committed
fix type definitions requiring a bit more than necessary
1 parent 12003b9 commit 11d4491

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

lua/defold/init.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---@class DefoldEditorSettings Settings for the Defold Game Engine
2-
---@field set_default_editor boolean Automatically set defold.nvim as the default editor in Defold
3-
---@field auto_fetch_dependencies boolean Automatically fetch dependencies on launch
4-
---@field hot_reload_enabled boolean Enable hot reloading when saving scripts in Neovim
2+
---@field set_default_editor boolean|nil Automatically set defold.nvim as the default editor in Defold
3+
---@field auto_fetch_dependencies boolean|nil Automatically fetch dependencies on launch
4+
---@field hot_reload_enabled boolean|nil Enable hot reloading when saving scripts in Neovim
55

66
---@class LauncherSettings Settings for the Neovim launcher run by Defold
77
---@field type "neovide"|"terminal" Neovim launcher run by Defold
@@ -11,7 +11,7 @@
1111
---@field debug boolean|nil Enable debug settings for the bridge cli
1212

1313
---@class DebuggerSettings Settings for the integrated debugger
14-
---@field enable boolean Enable the debugger
14+
---@field enable boolean|nil Enable the debugger
1515
---@field custom_executable string|nil Use a custom executable for the debugger
1616
---@field custom_arguments table<string>|nil Custom arguments for the debugger
1717

@@ -20,12 +20,12 @@
2020
---@field mapping string
2121

2222
---@class DefoldNvimConfig Settings for defold.nvim
23-
---@field defold DefoldEditorSettings Settings for the Defold Game Engine
24-
---@field launcher LauncherSettings Settings for the Neovim launcher run by Defold
25-
---@field debugger DebuggerSettings Settings for the integrated debugger
23+
---@field defold DefoldEditorSettings|nil Settings for the Defold Game Engine
24+
---@field launcher LauncherSettings|nil Settings for the Neovim launcher run by Defold
25+
---@field debugger DebuggerSettings|nil Settings for the integrated debugger
2626
---@field keymaps table<string, Keymap>|nil Settings for key -> action mappings
27-
---@field force_plugin_enabled boolean Force the plugin to be always enabled (even if we can't find the game.project file)
28-
---@field debug boolean Enable debug settings for the plugin
27+
---@field force_plugin_enabled boolean|nil Force the plugin to be always enabled (even if we can't find the game.project file)
28+
---@field debug boolean|nil Enable debug settings for the plugin
2929

3030
---@type DefoldNvimConfig
3131
local default_config = {

0 commit comments

Comments
 (0)