Format buffer and region.

Closes #38.

The implementation was simplified. Moreover, it is now possible to customize the
path to the `gdformat` executable.
This commit is contained in:
Franco Eusébio Garcia
2020-04-02 20:12:54 -03:00
parent 7b45e32e8d
commit b4d2bec304
4 changed files with 37 additions and 57 deletions

View File

@@ -60,6 +60,9 @@
(define-key map (kbd "\t") 'company-complete)
;; Insertion.
(define-key map "\C-c\C-f" 'gdscript-completion-insert-file-path-at-point)
;; Formatting.
(define-key map "\C-c\C-t\C-r" 'gdscript-format-region)
(define-key map "\C-c\C-t\C-t" 'gdscript-format-buffer)
;; Run in Godot.
(define-key map "\C-c\C-r\C-p" 'gdscript-godot-open-project-in-editor)
(define-key map "\C-c\C-r\C-r" 'gdscript-godot-run-project)