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

Bug about listchars #150

Closed
XXiaoA opened this issue Sep 13, 2022 · 7 comments
Closed

Bug about listchars #150

XXiaoA opened this issue Sep 13, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@XXiaoA
Copy link
Contributor

XXiaoA commented Sep 13, 2022

Describe the bug
Listchars of origin window disappear after entering aerial window

System information

  • OS: linux
  • Neovim version: nightly
  • AerialInfo: [output of :AerialInfo]
Aerial Info
-----------
Filetype: lua
Configured backends:
  lsp (not supported) [LSP client not attached (did you call aerial.on_a
ttach?)]
  treesitter (supported) (attached)
  markdown (not supported) [Filetype is not markdown]
Show symbols: Array, Boolean, Class, Constant, Constructor, Enum, EnumMe
mber, Event, Field, File, Function, Interface, Key, Method, Module, Name
space, Null, Number, Object, Operator, Package, Property, String, Struct
, TypeParameter, Variable

  • Aerial config:
require("aerial").setup({}) 

To Reproduce
Steps to reproduce the behavior:

  1. open nvim
  2. run :AerialOpen

Screenshots

screenrecorder-2022-09-13_17.56.05.mp4

Additional context
This bug appear after this commit d1e0bcd

@XXiaoA XXiaoA added the bug Something isn't working label Sep 13, 2022
@stevearc
Copy link
Owner

I cannot reproduce this. I've tried on v0.7.2 and on nightly. I've tried with my normal config and with a minimal config that consists of only

vim.o.list = true
require('aerial').setup({})

Could this be caused by some interaction with another plugin you're running? Can you try with a minimal config and see if the issue reproduces?

@XXiaoA
Copy link
Contributor Author

XXiaoA commented Sep 14, 2022

I cannot reproduce this. I've tried on v0.7.2 and on nightly. I've tried with my normal config and with a minimal config that consists of only

vim.o.list = true
require('aerial').setup({})

Could this be caused by some interaction with another plugin you're running? Can you try with a minimal config and see if the issue reproduces?

I'll make a minimal configuration ASAP. Unluckily it maybe in next weekend. because I'm gonna go to school tomorrow.
BTW, thx for ur awesome plugin! 😁

@sdemura
Copy link

sdemura commented Sep 17, 2022

I see this too.

If you open Aerial, change focus and go back to the aerial split, then the visual bug disappears

@stevearc
Copy link
Owner

Still can't get it to repro, but I've switched to using the list option instead of listchars (which is the more correct way to do what I want anyway). Can you check it again and see if that made a difference?

@XXiaoA
Copy link
Contributor Author

XXiaoA commented Sep 23, 2022

@stevearc The minimal configuration I tried:

local o = vim.opt
o.runtimepath:append("~/repos/aerial.nvim/")
o.runtimepath:append("~/repos/indent-blankline.nvim/")
o.runtimepath:append("~/repos/nvim-treesitter")

o.list = true
o.listchars:append("space:⋅")

require('aerial').setup({})
require("indent_blankline").setup({})

for index, value in ipairs({}) do
    if index == value then
        print(index)
    end
end

This seems that there is conflict between aerial and indent-blankline

screenrecorder-2022-09-23_19.59.52.mp4

@stevearc
Copy link
Owner

Thanks for the repro! I was able to narrow down the cause. Something aerial is doing does trigger it, but it's an autocmd + some behavior in indent-blankline that's causing the display issue. I've filed lukas-reineke/indent-blankline.nvim#482 to follow up.

@stevearc
Copy link
Owner

Fixed upstream in version 3 of indent-blankline

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

3 participants