aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-08 15:43:02 +0000
committerAleksey Kladov <[email protected]>2018-11-08 15:43:02 +0000
commit00e80b24e3a46b3c4a6411151132fccc539abd5f (patch)
tree76fb0982fa8da3a915c7c226892681b30a044a86 /editors
parentc69ff08dc9074ed92c11e9fb6bf267288aa3fa25 (diff)
workspace-symbols function for Emacs
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/server.ts5
-rw-r--r--editors/emacs/ra.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts
index a7a22fa6f..75e273f37 100644
--- a/editors/code/src/server.ts
+++ b/editors/code/src/server.ts
@@ -20,7 +20,10 @@ export class Server {
20 debug: run 20 debug: run
21 }; 21 };
22 const clientOptions: lc.LanguageClientOptions = { 22 const clientOptions: lc.LanguageClientOptions = {
23 documentSelector: [{ scheme: 'file', language: 'rust' }] 23 documentSelector: [{ scheme: 'file', language: 'rust' }],
24 initializationOptions: {
25 publishDecorations: true,
26 }
24 }; 27 };
25 28
26 Server.client = new lc.LanguageClient( 29 Server.client = new lc.LanguageClient(
diff --git a/editors/emacs/ra.el b/editors/emacs/ra.el
index a0b17f3af..fb73451c1 100644
--- a/editors/emacs/ra.el
+++ b/editors/emacs/ra.el
@@ -119,5 +119,10 @@
119 (xref--pop-to-location (get-text-property 0 'xref item)))))) 119 (xref--pop-to-location (get-text-property 0 'xref item))))))
120 120
121(add-to-list 'eglot-server-programs '(rust-mode . ("ra_lsp_server"))) 121(add-to-list 'eglot-server-programs '(rust-mode . ("ra_lsp_server")))
122
123; (require 'rust-mode)
124; (define-key rust-mode-map (kbd "C-n") 'workspace-symbols)
125
126(define-key)
122(provide 'ra) 127(provide 'ra)
123;;; ra.el ends here 128;;; ra.el ends here