[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jarchive 81c4b345bf 20/33: Set dependency-scheme to "ja
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jarchive 81c4b345bf 20/33: Set dependency-scheme to "jar" on clojure-lsp initialization |
Date: |
Sat, 12 Nov 2022 17:57:57 -0500 (EST) |
branch: externals/jarchive
commit 81c4b345bf6a627fe8e9d96de0343189cd242e5e
Author: dannyfreeman <danny@dfreeman.email>
Commit: dannyfreeman <danny@dfreeman.email>
Set dependency-scheme to "jar" on clojure-lsp initialization
Without this, jarchive won't work. Another option would be to enable
working with zipfile type URIs
---
jarchive.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/jarchive.el b/jarchive.el
index 44f6b6b294..587ba747a7 100644
--- a/jarchive.el
+++ b/jarchive.el
@@ -106,11 +106,20 @@ TODO: this might be unnecessary, try to remove"
(and (string-match-p jarchive--uri-regex buffer-file-name)
t))
+;; Eventually clojure-lsp devs may make this the default.
+(defvar jarchive-eglot-clojure-lsp-initialization-options '(:dependency-scheme
"jar")
+ "If non-nil, use these options when starting clojure-lsp servers with
eglot.")
+
;;;###autoload
(defun jarchive-setup ()
+ "setup jarchive, enabling emacs to open files inside jar archives.
+the files can be identified with the `jar' uri scheme."
(interactive)
(with-eval-after-load 'eglot
- (setq eglot-preserve-jar-uri t))
+ (when (and jarchive-eglot-clojure-lsp-initialization-options (boundp
'eglot-server-programs))
+ (add-to-list 'eglot-server-programs
+ `((clojure-mode clojurescript-mode clojurec-mode) .
+ ("clojure-lsp" :initializationOptions
,jarchive-eglot-clojure-lsp-initialization-options)))))
(add-to-list 'file-name-handler-alist (cons jarchive--uri-regex
#'jarchive--file-name-handler))
(add-to-list 'find-file-not-found-functions #'jarchive--find-file-not-found))
- [elpa] branch externals/jarchive created (now bfcc201cca), ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 3cbfeea812 01/33: Add readme and license, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive f2875659a8 02/33: Initial code, copied from my personal emacs config, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 642573149f 03/33: Try not to manage a collection of open buffers., ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive f4a7953b4f 04/33: reorganize testing code, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive bb2467f8f9 10/33: Add warning to readme, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 3a2b3096cd 11/33: Add autoload directive to jarchive-setup function, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 059efdf37c 16/33: Make eglot-extend-to-xref work, breaking support for `zipfile:` uris, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 9148ed7ada 18/33: WIP eglot setting to control jar URI parsing, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 81c4b345bf 20/33: Set dependency-scheme to "jar" on clojure-lsp initialization,
ELPA Syncer <=
- [elpa] externals/jarchive 214a7db52f 22/33: Update readme with better examples and explanations, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 305dbc947a 23/33: Don't for jar dependency scheme, just use whatever works., ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 8b738ec31b 26/33: Add changelog, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive abea8e79ec 28/33: Typo, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 0361896bdc 29/33: Address package-lint feedback, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 149f37507e 31/33: Separate Eglot patching process to be invoked manually by the user, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive d209394a47 08/33: Set a different buffer name that doesn't match the jarchive-regex, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive b226bfd66c 09/33: Helper functions for matching parts of the jar/file path, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive ec1da7f538 14/33: Allow user to relocate extracted files to the previous project., ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive d8fa586e1c 21/33: Also work with "zipfile" scheme URIs from clojure-lsp, ELPA Syncer, 2022/11/12