implement clangd's textDocument/switchSourceHeader
#1420
markblunk
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
I think the built-in Additionally, it would be slightly better not to define a new command (eglot--clangd-switch-source-header), but to extend the functionality of ff-find-other-file. There are examples to extend ff-find-other-file in eglot-x for rust and toml language servers. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a function that uses
clangd
's extension textDocument/switchSourceHeader in eglot.This is clearly influenced by similar functionality in lsp-mode https://github.com/emacs-lsp/lsp-mode/pull/2372/files
Since this is not in the official LSP spec, I am not sure if there is interest in including this in the eglot code base. Also I'm sure it needs some more robust error handling.
Beta Was this translation helpful? Give feedback.
All reactions