summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelicián Németh <felician.nemeth@gmail.com>2024-07-30 19:53:08 +0200
committerFelicián Németh <felician.nemeth@gmail.com>2024-07-30 19:53:08 +0200
commit34eb04fcd456158f486b59f4e3b3ad8f95f9fbaa (patch)
treea1eba098f1740f08c85fb359b15fa76e5daf287a
parent31cf3e66c1e93107aaa04f1c7e266d84ce3b31ea (diff)
Add menu item "Find related file"
* eglot-x.el (eglot-x-menu): Add new item, show it when eglot-x has its own `ff-find-other-file' version for the current server.
-rw-r--r--eglot-x.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/eglot-x.el b/eglot-x.el
index 0fccd52..58bf320 100644
--- a/eglot-x.el
+++ b/eglot-x.el
@@ -296,6 +296,10 @@ connections."
["Customize Eglot-x" (lambda () (interactive) (customize-group "eglot-x"))]
"--"
["Find additional references" eglot-x-find-refs]
+ ["Find related file" ff-find-other-file
+ :visible (and eglot-x-enable-ff-related-file-integration
+ (map-contains-key eglot--saved-bindings
+ 'ff-other-file-alist))]
["Join lines" eglot-x-join-lines
:visible (eglot--server-capable :experimental :joinLines)]
["Move item down" eglot-x-move-item-down