Skip to content

bug: Doesn't hide cmdline ("cmdheight = 0") with ui2 #1201

Description

@Nekketsu

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.12.1

Operating system/version

Windows 11

Describe the bug

If I enable ui2:

require('vim._core.ui2').enable({})

It is shown both, the cmdline and the Noice cmd. Even if I force set cmdheight=0, when I start writing a command it expands and the neovim command is shown in addition to the noice command.

It only happens with ui2. If I disable it, it works correclty. I don't know if is a Noice bug (because it might be handled different when using ui2), or if it is a Neovim ui2 bug.

Steps To Reproduce

  1. Enable ui2: require('vim._core.ui2').enable({})
  2. Hide native cmdline: vim.o.cmdheight = 0
  3. Use Noice

Expected Behavior

It should only show the Noice cmdline, but it is shown both, the Neovim and the Noice cmdlines.

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 = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions