Skip to content

Commit

Permalink
fix(xref-find-definitions): use dumb-jump for M-.
Browse files Browse the repository at this point in the history
to workaround xref-find-definitions/elpy-goto-definition issue
jorgenschaefer/elpy#1795
  • Loading branch information
zed committed Apr 19, 2021
1 parent b54199e commit f8b59c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ _p_rev _u_pper _=_: upper/lower _r_esolve
;; https://github.com/jorgenschaefer/elpy/blob/master/docs/introduction.rst
(advice-add 'python-mode :before 'elpy-enable)
:config
;; workaround xref-find-definitions/elpy-goto-definition issue https://github.com/jorgenschaefer/elpy/issues/1795
;; add this and the dumb-jump hook will work
(advice-add 'elpy--xref-backend :override #'dumb-jump-xref-activate)
;; flycheck
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook #'flycheck-mode))
Expand Down

0 comments on commit f8b59c9

Please sign in to comment.