Skip to content

bug(indent): Not all listchars are displayed in case indent is enabled #291

Closed
@pkropachev

Description

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.10.2

Operating system/version

Ubuntu 20.04

Describe the bug

Not all listchars are displayed in case indent is enabled.

Steps To Reproduce

  1. Set listchars.
local opt = vim.opt
opt.list = true
opt.listchars = {
  tab = ">-",
  trail = ".",
  nbsp = "¬",
  eol = "",
  space = ".",
  extends = ">",
  precedes = "<",
}
  1. Open file in neovim.

image

  1. Disable indent leader<ug>.

image

Expected Behavior

Listchars are displayed correct in case indent is enabled.

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

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions