You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seem to work outside of an LSP buffer (I can see those two functions have the right key binding). However, when I open the first LSP buffer (a JS one) the key bindings get changed to LSP default ones (s-l g g and s-l g r).
Is there a way keep the original key bindings?
The text was updated successfully, but these errors were encountered:
I faced the same issue with Emacs 28.2 on Macos 12.6.8. Instead of lsp-ui-mode-map, I used the variable lsp-mode-map and the xref keybindings worked for me.
So this is what those configuration lines look like:
;; remap xref-find-definitions(M-.) and xref-find-references(M-?) to lsp-ui-peek
(define-key lsp-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
(define-key lsp-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references)
I’m not sure if this is helpful as I'm still an Elisp noob, but it’s worth a shot.
Hi! I'm trying to keep
lsp-ui-peek-find-definitions
andlsp-ui-peek-find-references
to the original bindingsM-.
andM-?
.I have the following code:
And I have also tried the
lsp-ui
setup from here https://github.com/CSRaghunandan/.emacs.d/blob/master/setup-files/setup-lsp.el which usesThis seem to work outside of an LSP buffer (I can see those two functions have the right key binding). However, when I open the first LSP buffer (a JS one) the key bindings get changed to LSP default ones (
s-l g g
ands-l g r
).Is there a way keep the original key bindings?
The text was updated successfully, but these errors were encountered: