We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
+gitlab-ci-add-schema
1 parent 7788f5b commit b45c89aCopy full SHA for b45c89a
modules/on-demand/me-gitlab-ci.el
@@ -14,9 +14,22 @@
14
:companion-packages '(((yaml-mode yaml-ts-mode) . gitlab-ci-mode)))
15
16
17
+;;;###autoload(autoload '+gitlab-ci-add-schema "on-demand/me-gitlab-ci")
18
+
19
20
;; Mode for editing GitLab CI files
21
(use-package gitlab-ci-mode
- :straight t)
22
+ :straight t
23
+ :init
24
+ (defun +gitlab-ci-add-schema ()
25
+ (interactive)
26
+ (save-excursion
27
+ (save-restriction
28
+ (widen)
29
+ (goto-char (point-min))
30
+ (insert "# yaml-language-server: "
31
+ "$schema=https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json"
32
+ "\n\n")))))
33
34
35
(provide 'on-demand/me-gitlab-ci)
0 commit comments