Your cmdline on your heirline statusline
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
return {
'rebelot/heirline.nvim',
dependencies = {
...,
'zVNoob/heirline-cmdline',
},
event = 'UiEnter',
config = function()
require('heirline').setup {
statusline = {
...,
require('heirline-cmdline').setup({}),
...,
}
}
}
require('heirline-cmdline').setup({
max_item = 7,
placeholder_char = "",
keymap = {
confirm = "<CR>",
next = "<Tab>",
prev = "<S-Tab>",
force = "<M-CR>",
},
})
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
- cmdline
- highlighting
- substitute patterns
- completion
- custom provider
- abbr, pre-abbr support