Files
doomemacs/modules/tools/docker/config.el
Henrik Lissner 3b58741522 refactor(tree-sitter): centralize grammar config & hacks
Easier to track and maintain.
2025-08-27 16:57:28 +02:00

17 lines
503 B
EmacsLisp

;;; tools/docker/config.el -*- lexical-binding: t; -*-
(after! dockerfile-mode
(set-docsets! 'dockerfile-mode "Docker")
(set-formatter! 'dockfmt '("dockfmt" "fmt" filepath) :modes '(dockerfile-mode))
(when (modulep! +lsp)
(add-hook 'dockerfile-mode-local-vars-hook #'lsp! 'append)))
(use-package! dockerfile-ts-mode
:when (modulep! +tree-sitter)
:when (fboundp 'dockerfile-ts-mode) ; 29.1+ only
:defer t
:init
(set-tree-sitter! 'dockerfile-mode 'dockerfile-ts-mode 'dockerfile))