Skip to content

Commit

Permalink
fix: make default applicable-fn follow lsp-copilot-enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kassick committed Jan 7, 2025
1 parent 9b537be commit c2b904b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/lsp-copilot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2b904b

Please sign in to comment.