Skip to content

[feature request] Global toggle for lsp-ui-doc-enable #625

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

Open
betaprior opened this issue Jun 16, 2021 · 2 comments
Open

[feature request] Global toggle for lsp-ui-doc-enable #625

betaprior opened this issue Jun 16, 2021 · 2 comments

Comments

@betaprior
Copy link

I would like to be able to toggle lsp-ui-doc popups, but using the lsp-ui-doc-enable variable I can only seem to control the state on emacs startup. For example, if I start with doc popups enabled but then do (setq lsp-ui-doc-enable nil), it takes no effect.

The best I can do is toggle lsp-ui-doc-mode, but that only takes effect for a given buffer. It would be nice to be able to have global toggles for lsp-ui features that can take effect across all buffers and not just on startup.

@yyoncho
Copy link
Member

yyoncho commented Jun 17, 2021

but using the lsp-ui-doc-enable variable I can only seem to control the state on emacs startup

I don't think that this is true. After reopening the buffer lsp-ui-doc should not be enabled(at least lsp-mode won't enable it).

@betaprior
Copy link
Author

I don't think that this is true. After reopening the buffer lsp-ui-doc should not be enabled(at least lsp-mode won't enable it).

Ah, well I was thinking about more of an on-the-fly toggle that does not involve re-opening buffers. Some of us have problems with never killing buffers ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants