From ef69edfaea819105e2d8827c96d54a9785e2ed8f Mon Sep 17 00:00:00 2001 From: mathijs-bakker Date: Mon, 8 Sep 2025 10:50:21 +0200 Subject: [PATCH] Add gdtoolkit/gdformat check --- lua/godotdev/health.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lua/godotdev/health.lua b/lua/godotdev/health.lua index 4543788..a8d56d2 100644 --- a/lua/godotdev/health.lua +++ b/lua/godotdev/health.lua @@ -150,6 +150,28 @@ Make sure the Godot editor is running with LSP server enabled. health.info("â„šī¸ C# checks skipped (csharp=false)") end + health.start("Formatter: gdformat") + + if vim.fn.executable("gdformat") == 1 then + health.ok("✅ OK 'gdformat' found") + else + local install_instructions = [[ +❌ ERROR 'gdformat' not found. +Install it with Python pip or Homebrew: + +Linux / macOS: + pip install gdtoolkit + +macOS (Homebrew): + brew install gdtoolkit + +Windows: + pip install gdtoolkit +]] + health.warn(install_instructions) + end + check_indent() end + return M