From 3eb61601e5f4047dd1daae022107a54afe696f6e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 10 Jan 2020 05:09:34 -0500 Subject: [PATCH] Fix void-variable args error starting up lsp-mode --- modules/tools/lsp/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 23c0791ab..017f8289a 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -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)))