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

Make lsp-treemacs-symbols close the window if it's already opened #35

Open
Ekleog opened this issue Apr 8, 2020 · 1 comment
Open

Comments

@Ekleog
Copy link

Ekleog commented Apr 8, 2020

This would be consistent with upstream's treemacs function.

(I'm discovering the treemacs as well as lsp parts of emacs, and they all look great! just have a few weirdnesses to hammer out and… :))

@minikN
Copy link

minikN commented Oct 31, 2020

How about this?

(defun db/lsp-treemacs-symbols-toggle ()
  "Toggle the lsp-treemacs-symbols buffer."
  (interactive)
  (if (get-buffer "*LSP Symbols List*")
      (kill-buffer "*LSP Symbols List*")
    (progn (lsp-treemacs-symbols)
           (other-window -1))))

santoshs added a commit to fossix/fconfig that referenced this issue Apr 4, 2021
Add a toggle function for symbols window based on [1]

[1] emacs-lsp/lsp-treemacs#35 (comment)

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
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