Skip to content

bug: conflict with listchars.tab #2648

@xuefer

Description

@xuefer

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.11.5

Operating system/version

linux gentoo

Describe the bug

i have tabs indented file, but with snacks indent enabled, no tab configured by listchars is shown. all leading tabs is overwritten by "|"
expected: allow specify custom guide chars when the indent is tab chars

my configuration:
listchars = { tab = "> " }

Steps To Reproduce

  1. open file with tab indent content

Expected Behavior

show colored > as indent guide

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions