refactor(gdscript): remove format keybinds

Rely on :editor format's interface, instead, which is less janky.
This commit is contained in:
Henrik Lissner 2024-07-12 20:28:02 -04:00
parent 49d833fa64
commit 15ea9b6452
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -38,24 +38,17 @@
(map! :localleader (map! :localleader
:map gdscript-mode-map :map gdscript-mode-map
(:prefix ("r" . "run") (:prefix ("r" . "run")
:desc "Open project in Godot" "e" #'gdscript-godot-open-project-in-editor :desc "Open project in Godot" "e" #'gdscript-godot-open-project-in-editor
:desc "Run project" "p" #'gdscript-godot-run-project :desc "Run project" "p" #'gdscript-godot-run-project
:desc "Run debug" "d" #'gdscript-godot-run-project-debug :desc "Run debug" "d" #'gdscript-godot-run-project-debug
:desc "Run current scene" "s" #'gdscript-godot-run-current-scene) :desc "Run current scene" "s" #'gdscript-godot-run-current-scene)
(:prefix ("d" . "debug") (:prefix ("d" . "debug")
:desc "Toggle breakpoint" "d" #'gdscript-debug-toggle-breakpoint :desc "Toggle breakpoint" "d" #'gdscript-debug-toggle-breakpoint
:desc "Display breakpoint buffer" "b" #'gdscript-debug-display-breakpoint-buffer :desc "Display breakpoint buffer" "b" #'gdscript-debug-display-breakpoint-buffer
:desc "Continue execution" "c" #'gdscript-debug-continue :desc "Continue execution" "c" #'gdscript-debug-continue
:desc "Next" "n" #'gdscript-debug-next :desc "Next" "n" #'gdscript-debug-next
:desc "Step" "s" #'gdscript-debug-step) :desc "Step" "s" #'gdscript-debug-step)
(:prefix ("h" . "help") (:prefix ("h" . "help")
:desc "Browse online API" "b" #'gdscript-docs-browse-api :desc "Browse online API" "b" #'gdscript-docs-browse-api
:desc "Browse API at point" "f" #'gdscript-docs-browse-symbol-at-point) :desc "Browse API at point" "f" #'gdscript-docs-browse-symbol-at-point)))
(:prefix ("f" . "format")
:desc "Format buffer" "b" #'gdscript-format-buffer
:desc "Format region" "r" #'gdscript-format-region)))