diff --git a/clients/lsp-copilot.el b/clients/lsp-copilot.el index d1fe3b2a74..7bc212a1f5 100644 --- a/clients/lsp-copilot.el +++ b/clients/lsp-copilot.el @@ -55,7 +55,7 @@ lsp-install-server to fetch an emacs-local version of the LSP." :type 'string :group 'lsp-copilot) -(defcustom lsp-copilot-applicable-fn (-const t) +(defcustom lsp-copilot-applicable-fn (lambda (&rest _) lsp-copilot-enabled) "A function which returns whether the copilot is applicable for the buffer. The input are the file name and the major mode of the buffer." :type 'function