Daniel Kongsgaard

Results 41 comments of Daniel Kongsgaard

I have looked at the code now and can see that it will be a bit more complicated than I thought. Would something like this work: - Make a new...

I think what I want can almost be done with small changes in the `scope` code. I have uploaded a very rough draft here: #668 It is not at all...

Here are some comparison pictures. When the scope is the inner context, we only highlight the scope: When there is no scope highlighting, we highlight the context: When the scope...

I have renamed it to `current_indent` and rewritten a little bit now. The algorithm is still almost an exact copy of scope that just basically counts almost everything as being...

I had some time today too, so I tried making a version without tree sitter where most of the code is completely separate from the tree sitter stuff, so if...

I looked into doing what you said, but it was hard to get it to work with everything else. What I ended up doing was split the `for` loop into...

I changed it slightly by adding a boolean array keeping track of which `i`s are skipped (since they already do what they need to in the first loop), but I...

Actually, what I said is not entirely correct. With only adding a few arrays containing either booleans or numbers (i.e., arrays that should have no influence on the performance when...

> You can improve the calculation for the current indent by having a stack that mirrors `indent_state.stack`, but with the line numbers. If you add a new indent to the...

> guys could you update some kind of doc or post your setups? I can't literally even wrap my head around getting to highlight indent block with the config because...