Skip to content

zVNoob/heirline-cmdline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

(WIP) heirline-cmdline

Your cmdline on your heirline statusline

Why?

Do you find the spacious part of statusline is useless? Do you want use that for something more meaningful? Or, just like me, want to make the litte 'C' visible when cmdheight=0

Installation

lazy.nvim

return {
'rebelot/heirline.nvim',
  dependencies = {
	  ...,
	  'zVNoob/heirline-cmdline',
  },
  event = 'UiEnter',
  config = function()
    require('heirline').setup {
       statusline = {
        ...,
	    require('heirline-cmdline').setup({}),
	    ...,
       }
    }
}

Configuration

require('heirline-cmdline').setup({
	max_item = 7,
	placeholder_char = "",
	keymap = {
	    confirm = "<CR>",
	    next = "<Tab>",
	    prev = "<S-Tab>",
	    force = "<M-CR>",
    },
})

How it work

This plugin return an invisible U+FFFC (configurable) character which indicate the starting and ending point of your potential cmdline, then do all the hack to render the remaining part properly

TODO

  • cmdline
    • highlighting
    • substitute patterns
  • completion
    • custom provider
    • abbr, pre-abbr support

About

Put your cmdline onto statusline!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages