Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp-ui-peek-jump-backward, lsp-ui-peek-jump-forward is supported? #37

Closed
cyberphysicalrobotics opened this issue Mar 26, 2019 · 1 comment

Comments

@cyberphysicalrobotics
Copy link

Hi, I'm using project maintainer's config for ccls.
https://github.com/MaskRay/Config/blob/master/home/.config/doom/modules/private/my-cc/autoload.el

In the lsp-ui-peek.el file, there is lsp-ui-peek-jump-forward, lsp-ui-peek-jump-backward setup. But I cannot use them. How can I use them?

@MaskRay
Copy link
Member

MaskRay commented Mar 26, 2019

See lsp-ui-peek.el

(with-eval-after-load 'evil-jumps
  ;; We need to jump through some hoops to prevent the byte-compiler from
  ;; compiling this code.  We can’t compile the code without requiring
  ;; ‘evil-macros’.
  (eval '(progn
          (evil-define-motion lsp-ui-peek-jump-backward (count)
            (lsp-ui-peek--with-evil-jumps
             (evil--jump-backward count)
             (run-hooks 'xref-after-return-hook)))
          (evil-define-motion lsp-ui-peek-jump-forward (count)
            (lsp-ui-peek--with-evil-jumps
             (evil--jump-forward count)
             (run-hooks 'xref-after-return-hook))))
        t))

It requires you to load evil-jumps (part of evil-mode) before loading lsp-ui-peek.el.

This is not related to the ccls server and shouldn't be reported here. I'll move it to emacs-ccls.

@MaskRay MaskRay closed this as completed Mar 26, 2019
@MaskRay MaskRay transferred this issue from MaskRay/ccls Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants