mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
fix(gdscript): accommodate version-suffixed godot binaries
On some distros (like nixpkgs), the binary is suffixed with a version number.
This commit is contained in:
@ -25,6 +25,14 @@
|
||||
;; REVIEW: Maybe it's permissible if `gdscript-docs-local-path' is set?
|
||||
(setq gdscript-docs-use-eww nil)
|
||||
|
||||
;; Some systems append the version number to the executable, so ensure that
|
||||
;; the path is correct. Note that I avoid setting it to an absolute path to
|
||||
;; preserve TRAMP support.
|
||||
(setq gdscript-godot-executable
|
||||
(cond ((executable-find gdscript-godot-executable) gdscript-godot-executable)
|
||||
((executable-find "godot") "godot")
|
||||
((executable-find "godot4") "godot4")))
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'gdscript-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
|
Reference in New Issue
Block a user