rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.97k stars 78 forks source link

[Bug] `vim.notify()` doesn't produce the popup #175

Closed pidgeon777 closed 1 year ago

pidgeon777 commented 1 year ago

When running the :lua vim.notify() command, the output is displayed in the Neovim status bar, without showing any popup balloon.

But, the popup balloon is displayed if I use the :lua require('notify').notify() command.

Neovim version:

 NVIM v0.9.0-dev-454+g6d7b94ea0
 Build type: RelWithDebInfo
 LuaJIT 2.1.0-beta3
 Compilato da runneradmin@fv-az153-341

notify packer config:

{
    'rcarriga/nvim-notify',
    config = function()
        require('notify').setup({})
    end
}
pidgeon777 commented 1 year ago

Nevermind, I had to add the vim.notify = require("notify") setting to the setup file:

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