local M = {}

function M.config()
    require("noice").setup({
        routes = {
            {
                -- マクロ記録開始を表示する
                view = "notify",
                filter = { event = "msg_showmode" },
            },
            {
                -- ファイル保存のメッセージを非表示
                filter = {
                    event = "msg_show",
                    kind = "",
                    find = "written",
                },
                opts = { skip = true },
            },
            {
                -- 検索件数を非表示
                filter = {
                    event = "msg_show",
                    kind = "search_count",
                },
                opts = { skip = true },
            },
        },
    })
end

return M

local M = {}

function M.config()
    require("noice").setup({
        routes = {
            {
                -- マクロ記録開始を表示する
                view = "notify",
                filter = { event = "msg_showmode" },
            },
            {
                -- 検索件数を非表示
                filter = {
                    event = "msg_show",
                    kind = "search_count",
                },
                opts = { skip = true },
            },
            {
                filter = {
                    event = "msg_show",
                    kind = "",
                    any = {
                        { find = "fewer lines" }, -- 複数行削除
                        { find = "more lines" }, -- 複数行追加
                        { find = "written" }, -- ファイル保存
                        { find = "yanked" }, -- コピー
                    },
                },
                opts = { skip = true },
            },
        },
    })
end

return M

Hide some message on noice.
feat: Hide some message on noice.

Signed-off-by: Yoshio Sugiyama <d278fe5383150975c3f762683049de40f68a6e90@gmail.com>
