feat(docker): add treesit support

This commit is contained in:
Henrik Lissner
2025-05-24 16:56:48 +02:00
parent 7af7280f9e
commit 3b2caa7dcd
4 changed files with 24 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
;;; tools/docker/doctor.el -*- lexical-binding: t; -*-
(assert! (or (not (modulep! +tree-sitter))
(modulep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(assert! (or (not (modulep! +tree-sitter))
(fboundp 'dockerfile-ts-mode))
"Can't find `dockerfile-ts-mode'; Emacs 29.1+ is required")
(when (modulep! :editor format)
(unless (executable-find "dockfmt")
(warn! "Couldn't find dockfmt. Formatting will be disabled.")))