GithubHelp home page GithubHelp logo

Comments (7)

rudotriton avatar rudotriton commented on May 18, 2024 1

Amazing! I believe these issues are done now 👏

from indent-blankline.nvim.

lukas-reineke avatar lukas-reineke commented on May 18, 2024

Very good points

I didn't think about highlighting and the empty last block and big first block.
It makes much more sense to create the indent [char, whitespace] now instead of [whitespace, char] like it was before.
I think I can fix all of your issues.

from indent-blankline.nvim.

lukas-reineke avatar lukas-reineke commented on May 18, 2024

indent_blankline_show_first_indent_levelindent_blankline_show_first_indent_level

this should be fixed now.

I don't think I can turn off the as on just the even/empty lines

I removed indentation on empty lines that are not part of deeper indentation.
I also added g:indent_blankline_show_first_indent_level to turn of indent guides on the first column in all cases

there always seems to be a 3 wide void before the let
this should be fixed now

the first color group is 5 wide instead of 4?
this should be fixed as well

As a bonus, I added g:indent_blankline_show_trailing_blankline_indent
You can turn that off if you just want to use background highlights, they should all line up now

Thanks for the issue 🚀 let me know if anything else is not working

from indent-blankline.nvim.

rudotriton avatar rudotriton commented on May 18, 2024

Amazing, I really like the changes and I can get it working exactly how I would like.

Some things I see, neither of which affect me, and ignore if something is intentional, but:

  • if g:indent_blankline_space_char_highlight_list is set then its variation: g:indent_blankline_space_char_blankline_highlight_list, or non-list, won't overrule it and the colors set to be used on indent lines are also used for empty line. It's good for not having to set multiple variables, but by setting them, maybe you'd expect them to be considered.
  • trailing colors are not in sync:

Screenshot 2021-02-23

from indent-blankline.nvim.

lukas-reineke avatar lukas-reineke commented on May 18, 2024

hm I can't reproduce the g:indent_blankline_space_char_highlight_list issue, if I set this.

let g:indent_blankline_space_char_highlight_list = ['DiffDelete', 'markdownFirstHeadline']
let g:indent_blankline_space_char_blankline_highlight_list = []

I get no highlight for the blank lines like I would expect.

For the out of sync bug, thank you. I pushed a fix now

from indent-blankline.nvim.

rudotriton avatar rudotriton commented on May 18, 2024

The first one may have been my misunderstanding with something, I can't repro it either now.

The trailing indents are in sync now which is really sweet, however with let g:indent_blankline_show_first_indent_level = v:false, they lose their styling completely. Likely not intentional, maybe indexing something that is not in the list? Doesn't seem to depend on the list length though.

Screen Shot 2021-02-25

Screen Shot 2021-02-25

from indent-blankline.nvim.

lukas-reineke avatar lukas-reineke commented on May 18, 2024

Good catch. When calculating the index I forgot that the first pair could be only whitespace.
So the index became a float.
Pushed a fix, thank you.

from indent-blankline.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.