Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmdline does not work after re-enable Noice with cmdheight=1 #305

Closed
3 tasks done
przepompownia opened this issue Jan 6, 2023 · 2 comments
Closed
3 tasks done

Cmdline does not work after re-enable Noice with cmdheight=1 #305

przepompownia opened this issue Jan 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@przepompownia
Copy link

przepompownia commented Jan 6, 2023

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the exsiting issues of plugins related to this issue

Neovim version (nvim -v)

0996430392eed424666c03b22b002542322d5d08

Operating system/version

Debian Sid

Describe the bug

As in the title: look into the steps below.

Steps To Reproduce

Starting with the minimal init.vim show at the bottom of this report run

NoiceDisable
set cmdheight=1
NoiceEnable

and try to submit any command through Noice input. I cannot.

Why such a strange sequence? I tried to check if I can see notifications about recording using Noice in any way (e.g. with cmdheight=1).

Expected Behavior

Cmdline Noice input could be invulnerable to the flow shown above (independently of the cmdheight value set after enable Noice again).

Repro

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
    "folke/noice.nvim",
    dependencies = {
      "MunifTanjim/nui.nvim",
      "rcarriga/nvim-notify",
    },
  },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here
vim.opt.termguicolors = true
vim.cmd([[colorscheme tokyonight]])
require("noice").setup({
  -- messages = {
  --   view = 'mini',
  --   view_search = false,
  --   view_error = 'mini',
  --   view_warn = 'mini',
  -- },
  -- notify = {
  --   enabled = true,
  --   view = 'mini',
  -- },
  -- lsp = {
  --   signature = {
  --     enabled = false,
  --   },
  --   hover = {
  --     enabled = false,
  --   }
  -- },
  -- views = {
  --   mini = {
  --     timeout = 5000,
  --   },
  -- },
})
@przepompownia przepompownia added the bug Something isn't working label Jan 6, 2023
@max397574
Copy link
Contributor

max397574 commented Jan 6, 2023

cmdheight must be 0 for some things
I definitely know about ext_messages
perhaps for other ones as well

@folke
Copy link
Owner

folke commented Jan 6, 2023

Yeah, I have no control over that. Once ext_messages or ext_cmdline attaches, cmdheight will automatically be zero

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants