-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Hide indent guides in visual mode #132
Comments
No it's not possible. Neovim has |
Hm, |
You're right, it's only broken for |
Yeah, I created a new issue because it 's not really related to scrolling. See neovim/neovim#14929. |
bfredl wrote all of this virtual text code. He knows best how to fix it. |
hey, everyone... I'm seeing this problem with block-visual ( {
indent = {
char = '┆',
highlight = {"…"}
},
scope = {show_start = false}
} |
ended up using the following snippet to turn on/off indent-blanklines when exiting/entering visual mode local saca_de_enmedio_a_indent_blankline = vim.api.nvim_create_augroup("saca_de_enmedio_a_indent_blankline",
{clear = true})
vim.api.nvim_create_autocmd("ModeChanged",
{
group = saca_de_enmedio_a_indent_blankline,
pattern = "[vV\x16]*:*", -- visual → cualquier cosa
command = "IBLEnable",
desc = "Habilita indent-blanklines al salir de modo visual"
})
vim.api.nvim_create_autocmd("ModeChanged",
{
group = saca_de_enmedio_a_indent_blankline,
pattern = "*:[vV\x16]*", -- cualquier cosa → visual
command = "IBLDisable",
desc = "Deshabilita indent-blanklines al salir de modo visual"
})
|
This is a related question. How can I configure the plugin to never hide indent guides? |
This is perfect! Here's an English version I made for myself 😅: local indent_blankline_augroup = vim.api.nvim_create_augroup("indent_blankline_augroup", {clear = true})
vim.api.nvim_create_autocmd("ModeChanged", {
group = indent_blankline_augroup,
pattern = "[vV\x16]*:*",
command = "IBLEnable",
desc = "Enable indent-blankline when exiting visual mode"
})
vim.api.nvim_create_autocmd("ModeChanged", {
group = indent_blankline_augroup,
pattern = "*:[vV\x16]*",
command = "IBLDisable",
desc = "Disable indent-blankline when exiting visual mode"
}) |
Hey! I've just switched from indent-guides.nvim to this plugin and one of the first thing I notice is the indent guides are displayed even in visual mode. Is there any way to hide them (lua branch)?
The text was updated successfully, but these errors were encountered: