Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

How to define a hotkey to show/hide Saga / LSP output? #62

Open
matejsarlija opened this issue Jan 19, 2022 · 2 comments
Open

How to define a hotkey to show/hide Saga / LSP output? #62

matejsarlija opened this issue Jan 19, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@matejsarlija
Copy link

Hi, I'm a total newb, trying to set up an neovim IDE for myself for a Ruby project, is there a setting to "hide" diagnostics output from rubocup/solargraph?

As I understand it from your sample config from here and from the very helpful https://anchietajunior.hashnode.dev/neovim-lsp-commands-lsp-saga-configuration-and-functionalities there is "show line diagnostics" and "show cursor diagnostics", and they all work just dandy, but how do I hide the output unless I want it shown?

Best
Matej

@matejsarlija matejsarlija added the enhancement New feature or request label Jan 19, 2022
@kkharji
Copy link
Owner

kkharji commented Jan 19, 2022

I have this in my configuration, not sure how you would go about to toggle these, maybe a function that refer to a variable, anyway,

cmd("DiagnosticEnable", "lua vim.diagnostic.enable(0)")
cmd("DiagnosticDisable", "lua vim.diagnostic.disable(0)")
command! DiagnosticEnable lua vim.diagnostic.enable(0)
command! DiagnosticDisable lua vim.diagnostic.disable(0)

feel free to dig deeper.

@matejsarlija
Copy link
Author

Thanks, I'll give it a look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants