rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
3.09k stars 83 forks source link

how to control notify level #77

Closed leisurelicht closed 2 years ago

leisurelicht commented 2 years ago

I want to close debug and trace notify. how I can do it.

rcarriga commented 2 years ago

Added the capability to choose a level, default is info. Please try latest commit :grin:

leisurelicht commented 2 years ago

Added the capability to choose a level, default is info. Please try latest commit 😁

it works, thanks.

NullVoxPopuli commented 2 years ago

is info a correct default? I'm have a lot of notifications that aren't saying anything useful with this :sweat_smile: (I'm looking to bump my level to warn, I think).

Though, It'd be great to have an example of how to do this in the README.

atm, I have this:

  use {
    'rcarriga/nvim-notify',
    config = function()
      require('notify').setup {
        level = "warn"
      }
    end
  }

and yet, when I tell the lsp to hover, I get: image (2 notifications per leader-space)

rcarriga commented 2 years ago

The code was assuming an upper case level :facepalm:, fixed it to work for lower case too.

NullVoxPopuli commented 2 years ago

thanks!! <3