feat(format): add :tools docker formatter
This commit is contained in:
parent
c7794ba06c
commit
7e15504163
2 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
(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)))
|
||||
|
|
5
modules/tools/docker/doctor.el
Normal file
5
modules/tools/docker/doctor.el
Normal file
|
@ -0,0 +1,5 @@
|
|||
;;; tools/docker/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (executable-find "dockfmt")
|
||||
(warn! "Couldn't find dockfmt. Formatting will be disabled.")))
|
Loading…
Add table
Add a link
Reference in a new issue