jdtsmith / eglot-booster

Boost eglot using lsp-booster
GNU General Public License v3.0
152 stars 3 forks source link

custom-initialize-reset: Symbol’s value as variable is void: eglot-server-programs #1

Closed CsBigDataHub closed 8 months ago

CsBigDataHub commented 8 months ago

config added to my .emacs file -

(use-package eglot-booster
       :after eglot
       :straight
       (eglot-booster
        :type git
        :host github
        :repo "jdtsmith/eglot-booster")
       :config (eglot-booster-mode))

error at start up -

custom-initialize-reset: Symbol’s value as variable is void: eglot-server-programs

Is it a right approach to activate eglot-booster-mode with eglot-managed-mode-hook ?

jdtsmith commented 8 months ago

This shouldn't happen. What happens if you M-x package-vc-install this package instead, and remove the straight stuff?

Also eglot-managed-mode-hook is too late; server -> client traffic will already have occurred.

CsBigDataHub commented 8 months ago

@jdtsmith Thanks, no sure what happened. Deleting straight directory and restarting emacs worked.