nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.12k stars 105 forks source link

Feature Request: Set Notification Levels #401

Open kevintraver opened 2 months ago

kevintraver commented 2 months ago

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.