Skip to content

Configuration Recipes

Folke Lemaitre edited this page Oct 3, 2022 · 13 revisions

Hide written messages

  require("noice").setup({
    routes = {
      {
        filter = {
          event = "msg_show",
          kind = "",
          find = "written",
        },
        opts = { skip = true },
      },
    },
  })

Clean cmdline_popup

image

  require("noice").setup({
    views = {
      cmdline_popup = {
        border = {
          style = "none",
          padding = { 2, 3 },
        },
        filter_options = {},
        win_options = {
          winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder",
        },
      },
    },
  })

Use a Classic Bottom Cmdline for Search

image

  require("noice").setup({
    routes = {
      {
        filter = {
          event = "cmdline",
          find = "^%s*[/?]",
        },
        view = "cmdline",
      },
    },
  })
Clone this wiki locally