From d2b566406a0d23c414e4d7742fded9c13b48794b Mon Sep 17 00:00:00 2001 From: Lucius Hu <1222865+lebensterben@users.noreply.github.com> Date: Mon, 31 Jan 2022 04:14:59 +0000 Subject: [PATCH] rust: respect `lsp-use-upstream-bindings` This is needed after https://github.com/syl20bnr/spacemacs/commit/1d45278a71275cc3e22d136389b6f030d69f50b4 --- layers/+lang/rust/funcs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/+lang/rust/funcs.el b/layers/+lang/rust/funcs.el index 4a9640664..091b03e32 100644 --- a/layers/+lang/rust/funcs.el +++ b/layers/+lang/rust/funcs.el @@ -58,7 +58,7 @@ (spacemacs/declare-prefix-for-mode 'rust-mode "ms" "switch") (spacemacs/set-leader-keys-for-major-mode 'rust-mode "ss" 'spacemacs/lsp-rust-switch-server - "bR" 'spacemacs/lsp-rust-analyzer-reload-workspace)) + (if lsp-use-upstream-bindings "wR" "bR") 'spacemacs/lsp-rust-analyzer-reload-workspace)) (spacemacs//lsp-layer-not-installed-message))) (defun spacemacs//rust-setup-lsp-dap ()