Replies: 1 comment 2 replies
-
The long #802 discusses (among other things) Eglot's public API. Maybe that's a good place to collect requests of "public functions for constructing typical LSP-format arguments". Are you sure, @spenczar, that the last argument of eglot-execute-command needs to be a vector? Isn't this just the requirement of swn.injectDocstrings? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thanks eglot! It's so clean and nice to work with. I've been hacking on a plugin for the Python Language Server. My plugin provides custom
commands
.I'd like to write a little bit of elisp to be able to invoke the custom commands. I can almost do this with
eglot-execute-command
, but one hard part is formatting the arguments. I have to reach into eglot internals to do that, which feels unsafe:Note the use of
eglot--path-to-uri
andeglot--pos-to-lsp-position
.I think my concrete request is for:
eglot-execute-command
. It took some spelunking to figure out that arguments needs to be a vector.Beta Was this translation helpful? Give feedback.
All reactions