Skip to content

jake-stewart/auto-cmdheight.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

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.

auto-cmdheight.mov

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,
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages