Fix void-variable args error starting up lsp-mode

This commit is contained in:
Henrik Lissner 2020-01-10 05:09:34 -05:00
parent 24652f26de
commit 3eb61601e5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -95,7 +95,7 @@ This also logs the resolved project root, if found, so we know where we are."
(if-let (root (lsp--calculate-root (lsp-session) (buffer-file-name)))
(lsp--info "Guessed project root is %s" (abbreviate-file-name root))
(lsp--info "Could not guess project root."))))))
(apply orig-fn args))
(funcall orig-fn arg))
;; Don't prompt to restart LSP servers while quitting Emacs
(add-hook! 'kill-emacs-hook (setq lsp-restart 'ignore)))