No description
Find a file
2025-06-11 19:21:23 +08:00
lua fix hit enter showing 2025-06-11 19:21:23 +08:00
LICENSE Create LICENSE 2025-04-03 22:12:33 +08:00
README.md doc 2025-04-04 12:36:15 +08:00

auto-cmdheight.nvim

This plugin dynamically resizes your 'cmdheight' to fit the content of messages displayed via vim.api.nvim_echo(), vim.print(), and print(). This removes the "Hit Enter" prompt for many cases.

https://github.com/user-attachments/assets/6fda7f6a-0244-4192-83de-ebec8aa8fb92

Setup (lazy.nvim)

{
  "jake-stewart/auto-cmdheight.nvim",
  lazy = false,
  opts = {
    -- max cmdheight before displaying hit enter prompt.
    max_lines = 5,

    -- number of seconds until the cmdheight can restore.
    duration = 2,

    -- whether key press is required to restore cmdheight.
    remove_on_key = true,

    -- always clear the cmdline after duration and key press.
    -- by default it will only happen when cmdheight changed.
    clear_always = false,
  }
}