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

Feat: Support for %S showcmd statusline component #949

Closed
aloknigam247 opened this issue Jan 23, 2023 · 3 comments
Closed

Feat: Support for %S showcmd statusline component #949

aloknigam247 opened this issue Jan 23, 2023 · 3 comments
Labels
new feature New feature or feature request

Comments

@aloknigam247
Copy link

Requested feature

Neovim added a statusline component to show showcmd in lualine using %S in statusline. See neovim help below
https://neovim.io/doc/user/options.html#'showcmdloc'

Lualine does not support %S and reports error when try to use it.
Looking at the code, it looks like lualine uses %S for some internal usage.

This feature requests to provide support for %S statusline component in lualine.

@aloknigam247 aloknigam247 added the new feature New feature or feature request label Jan 23, 2023
@aloknigam247 aloknigam247 changed the title Feat: Suuprt for %S showcmd statusline component Feat: Support for %S showcmd statusline component Jan 23, 2023
@telbizov
Copy link

+1 for the feature request

I am looking for a way to display the exact same information that showcmd shows in lualine itself. For example when in visual block mode it shows 6x3 etc

@aloknigam247
Copy link
Author

Thanks @shadmansaleh

craigmac pushed a commit to craigmac/lualine.nvim that referenced this issue May 15, 2024
switch to using %z for internal separator representation
since %s is now used by neovim.

closes nvim-lualine#949
@jdhao
Copy link

jdhao commented Dec 19, 2024

It seems that we also need to set option showcmdloc to statusline to use %S component in lualine:

vim.o.showcmdloc = "statusline"

without above, the %S component does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

3 participants