emacs-lsp / lsp-treemacs

lsp-mode :heart: treemacs
GNU General Public License v3.0
398 stars 47 forks source link

`lsp-treemacs-symbols': add after-jump hook #71

Closed nbfalcon closed 3 years ago

nbfalcon commented 3 years ago

Refactor the :ret-action lambda (duplicated twice) of lsp-treemacs--symbols->tree into a new interactive function. The latter runs lsp-treemacs-after-jump-hook, meaning that the goto-symbol action of lsp-treemacs-symbols can now be customized. In that function, no longer run xref-after-jump-hook directly, but instead in lsp-treemacs-after-jump-hook.

Fixes #34.

nbfalcon commented 3 years ago

I've just rebased this.