-- noice.lua: Replaces default UI messages with polished, keyboard-friendly notifications.

return {
  {
    "folke/noice.nvim",
    event = "VeryLazy",
    opts = {
      cmdline = {
        view = "cmdline_popup",
        opts = { border = { style = "rounded", padding = { 0, 1 } } },
      },
      messages = {
        view = "notify",
        view_opts = { border = { style = "rounded", padding = { 0, 1 } } },
      },
      popupmenu = {
        backend = "nui",
        nui = { border = { style = "rounded", padding = { 0, 1 } } },
      },
      lsp = {
        hover = { opts = { border = { style = "rounded", padding = { 0, 1 } } } },
        signature = { opts = { border = { style = "rounded", padding = { 0, 1 } } } },
      },
      presets = {
        lsp_doc_border = true, -- adds border to hover/signature automatically
      },
    },
    dependencies = {
      "MunifTanjim/nui.nvim",
      "rcarriga/nvim-notify",
    },
  },
}
