aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-godot.el
blob: ec438ae292deb8c6df91398753cb4fa0b8486ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
(when (gx/maybe-require-package 'gdscript-mode)
  (gx/maybe-require-package 'hydra)
  (add-to-list 'auto-mode-alist '("\\.tscn\\'" . gdscript-mode))
  (add-to-list 'auto-mode-alist '("\\.gd\\'" . gdscript-mode))
  (when (gx/maybe-require-package 'eglot)
    (add-hook 'gdscript-mode-hook #'eglot-ensure)))

(setq gdscript-use-tab-indents nil
      gdscript-indent-offset 4)

(provide 'init-godot)