Skip to content

Commit ef69edf

Browse files
Add gdtoolkit/gdformat check
1 parent 4f734c4 commit ef69edf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lua/godotdev/health.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,28 @@ Make sure the Godot editor is running with LSP server enabled.
150150
health.info("ℹ️ C# checks skipped (csharp=false)")
151151
end
152152

153+
health.start("Formatter: gdformat")
154+
155+
if vim.fn.executable("gdformat") == 1 then
156+
health.ok("✅ OK 'gdformat' found")
157+
else
158+
local install_instructions = [[
159+
❌ ERROR 'gdformat' not found.
160+
Install it with Python pip or Homebrew:
161+
162+
Linux / macOS:
163+
pip install gdtoolkit
164+
165+
macOS (Homebrew):
166+
brew install gdtoolkit
167+
168+
Windows:
169+
pip install gdtoolkit
170+
]]
171+
health.warn(install_instructions)
172+
end
173+
153174
check_indent()
154175
end
176+
155177
return M

0 commit comments

Comments
 (0)