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

Feature Request: Set Notification Levels #401

Open
kevintraver opened this issue Apr 29, 2024 · 0 comments
Open

Feature Request: Set Notification Levels #401

kevintraver opened this issue Apr 29, 2024 · 0 comments

Comments

@kevintraver
Copy link

Feature Request: Add config options to set notification levels for different events.

Could be set in config, maybe something like this:

notification_levels = {
    test = {
      not_found = "warn",
      error = "error",
      success = "info",
    },
    watcher = {
      start = "warn",
      stop = "info",
      not_found = "error",
    },
    lsp = {
      no_client = "warn",
    },
  }

and then lib.notify could use the config setting:

  lib.notify(("Stopping watch for %s"):format(position_id), config.notification_levels.watcher.stop)

Happy to help with PR.

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

1 participant