folke / noice.nvim

💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.
Apache License 2.0
4.38k stars 102 forks source link

bug: Macro and Other Message doesn't work even with solution and clean neovim #974

Closed PoutineSyropErable closed 2 hours ago

PoutineSyropErable commented 3 hours ago

Did you check docs and existing issues?

Neovim version (nvim -v)

Neovim: v0.10.2 , Noice: 4.5.2 stable

Operating system/version

Arch Linux, 6.11.5-arch1-1

Describe the bug

Macro and other message in the same category do not work. I will provide a clean neovim with lazy init.lua and test it for yourself.

Steps To Reproduce

Here's the most barebones init.lua

--vim.g.loaded_netrwPlugin = 1

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system({
        "git",
        "clone",
        "--filter=blob:none",
        "https://github.com/folke/lazy.nvim.git",
        "--branch=stable", -- latest stable release
        lazypath,
    })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
{
  "folke/noice.nvim",
  event = "VeryLazy",
  opts = {
    -- add any options here
  },
  dependencies = {
    -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
    "MunifTanjim/nui.nvim",
    -- OPTIONAL:
    --   `nvim-notify` is only needed, if you want to use the notification view.
    --   If not available, we use `mini` as the fallback
    "rcarriga/nvim-notify",
    }
}
})

 require("noice").setup ({
    routes = {
      {
        view = "notify",
        filter = { event = "msg_showmode" },
      },
    },
  })

-- require("core.options")
-- require("core.plugins")
-- require("core.plugin_config")
-- require("core.keymaps")

vim.api.nvim_set_hl(0, "LineNr", { fg = "#ef2f81" }) -- Change this to your desired color for relative line numbers
-- vim.api.nvim_set_hl(0, "CursorLineNr", { fg = "#00ff00" }) -- Change this to your desired color for the current line number

Expected Behavior

I should have a way of knowing when I'm doing a macro

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        {
            "folke/noice.nvim",
            opts = {},
            dependencies = {
                -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
                "MunifTanjim/nui.nvim",
                -- OPTIONAL:
                --   `nvim-notify` is only needed, if you want to use the notification view.
                --   If not available, we use `mini` as the fallback
                "rcarriga/nvim-notify",
            }
        },
        -- add any other plugins here
    },
})

require("noice").setup ({
    routes = {
        {
            view = "notify",
            filter = { event = "msg_showmode" },
        },
    },
})
PoutineSyropErable commented 2 hours ago

I Lazy Cleaned the uninstall packages, and git branch to modify it.