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

Alignment Issues in Nvim #46

Open
himanshu-39k opened this issue Nov 15, 2023 · 1 comment
Open

Alignment Issues in Nvim #46

himanshu-39k opened this issue Nov 15, 2023 · 1 comment

Comments

@himanshu-39k
Copy link

Hi,
I am facing a slight issue, would appreciate your thoughts on this. if say I've a CSV data which contains a index field which would mean header would have trailing comma in it. Take a look in the following example:

,first,second,third,fourth
1,the,why,you,align
2,the,why,you,align
3,the,why,you,align

1,2&3 is the index number of the data.
Screenshot 2023-11-15 at 12 02 10 PM

Plugin is able to detect the correct order of colours when I'm not trying to align it. As we can see in the picture, it is colouring the index in the separate colour. But what happens when I try to align the data is:

first ,second ,third ,fourth 
    1 ,the    ,why   ,you    ,align 
    2 ,the    ,why   ,you    ,align 
    3 ,the    ,why   ,you    ,align 

It somehow align the index into first column and last column is orphan without any header for it. It kind of ignores the first comma of the header. VSCode rainbow plugin handles this properly.
I hope I explained the issue rightfully. Do let me know if I missed anything. Will put in more detail if required.
Thanks

@mechatroner
Copy link
Owner

Thank you for the bug report.
But I couldn't reproduce this either in Vim or in Neovim, using this data:

,first,second,third,fourth
1,the,why,you,align
2,the,why,you,align
3,the,why,you,align

But I don't completely understand what is the "index number of the data."? is it a part of csv file itself or is this some sort of Neovim feature that adds these numbers? is '4' in the last line an index number too? why is it aligned further to the left than the other index numbers?
Could you please the original (non-aligned) content of your files if it differs from what I posted?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants