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

set list doesn't distinguish spaces from tabs #4512

Open
githorse opened this issue Feb 27, 2024 · 2 comments
Open

set list doesn't distinguish spaces from tabs #4512

githorse opened this issue Feb 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@githorse
Copy link

githorse commented Feb 27, 2024

Problem description

Out of the box, :set list does not distinguish spaces from tabs, because the indent guides don't change:

image

If I disable the indent-blankline.nvim plugin :

-- ~/.config/lvim/config.lua
lvim.builtins.indentlines.active = false

... and turn on :set list, now I can see that I have mixed spaces and tabs in my file:

image

Questions:

  1. Is this the intended behavior here? (It seems like indent-blanklines is supposed to play nicer with :set list, but I could be wrong.)
  2. Is there a way to toggle on and off the indent guides without disabling the plugin? I tried to write a user command to do this, but it doesn't work because I have restart LunarVim for the indentlines.active = ... to take effect.

LunarVim version

release-1.3/neovim-0.9-d1c1bace

Neovim version (>= 0.9.1)

0.9.5

Terminal name

Terminal (macOS)

Operating system/version

macOS 14.2 (23C64)

Steps to reproduce

  1. :set list (using otherwise out-of-the-box LunarVim)

Screenshots

See above.

@githorse githorse added the bug Something isn't working label Feb 27, 2024
Copy link
Contributor

This issue is stale because it has been open for 50 days with no activity.

@github-actions github-actions bot added the stale label Apr 18, 2024
@juicy-g
Copy link
Contributor

juicy-g commented Apr 30, 2024

Regarding question 2, have you tried :IndentBlanklineToggle as per the Indent Blankline docs to toggle between enable and disable?

@github-actions github-actions bot removed the stale label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants