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

Clarify proper usage with cmdheight=0 #28

Open
prescientmoon opened this issue Dec 20, 2023 · 5 comments
Open

Clarify proper usage with cmdheight=0 #28

prescientmoon opened this issue Dec 20, 2023 · 5 comments

Comments

@prescientmoon
Copy link

prescientmoon commented Dec 20, 2023

It looks like the hydra suggested keybinds print :VBox to the cmd line even when silent = true, which make the statusline flicker when cmdheight=0. I cannot figure out how to use :silent with a visual mode command, so it would be nice if the readme suggested a way to fix issues like these. It would be nice if there was a documented way to call VBox directly from lua, for example, without going through the cmdline mechanism.

@jbyuki
Copy link
Owner

jbyuki commented Dec 24, 2023

This is more related to how hydra handles keybindings. Although I know that the maintenainer is currently not very active so it would be hard to get answers there. How about setting the keybinding manually?

vim.keymap.set('v', '<leader>g', ':VBox<cr>', {silent = true})

or using vimscript

vnoremap <silent> <leader>g :VBox<CR>

Also make sure to have the latest nightly version for these features as they are in active development.

@prescientmoon
Copy link
Author

@jbyuki You are right, setting the keymap using vim.keymap.set does not make the cmdline flicker, although I would expect setting silent = true to have the same effect in hydra (it does not).

@jbyuki
Copy link
Owner

jbyuki commented Dec 26, 2023

I've seen a new hydra.nvim fork scrolling in my feed: https://github.com/nvimtools/hydra.nvim . Maybe they could help you there on that subject as I don't use hydra myself.

@prescientmoon
Copy link
Author

prescientmoon commented Dec 27, 2023

Never mind, the issue still occurs with the vim keybind:
neovim-statusline-flicker

(I hope the gif loads properly)

@jbyuki

@jbyuki
Copy link
Owner

jbyuki commented Dec 27, 2023 via email

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

No branches or pull requests

2 participants