tweak(gdscript): gdscript-docs-use-eww = nil

eww is clumsy and slow; taking 4-6 seconds to load and render the page
on a good day, so just use the browser instead.
This commit is contained in:
Henrik Lissner 2024-07-12 20:24:08 -04:00
parent 3b68924723
commit 3cc2d83ee8
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -14,6 +14,11 @@
:documentation '(gdscript-docs-browse-symbol-at-point :async t)) :documentation '(gdscript-docs-browse-symbol-at-point :async t))
(set-formatter! 'gdformat '("gdformat" "-") :modes '(gdscript-mode)) (set-formatter! 'gdformat '("gdformat" "-") :modes '(gdscript-mode))
;; eww is clumsy and slow. Best that `gdscript-docs-browse-symbol-at-point'
;; simply use the browser.
;; REVIEW: Maybe it's permissible if `gdscript-docs-local-path' is set?
(setq gdscript-docs-use-eww nil)
(when (modulep! +lsp) (when (modulep! +lsp)
(add-hook 'gdscript-mode-local-vars-hook #'lsp! 'append)) (add-hook 'gdscript-mode-local-vars-hook #'lsp! 'append))