-
Notifications
You must be signed in to change notification settings - Fork 8
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
:TOhtml
will be subject to breaking changes
#86
Comments
Why do the tests require tabs? The rest seems like it should be surmountable. |
Coalescing everything to spaces will make these kinds of tests unsound, unavoidably adding room for incorrect passes or failures. |
The breaking changes are here to stay. From https://neovim.io/doc/user/vim_diff.html#nvim-removed -
Looks like we'll need to come up with something else in order to sustain Neovim support in the long term. In fact, looking at the context of that Neovim change and looking under the hood of Vim's After #84 is merged we can investigate options here. |
:TOhtml
maybe subject to breaking changes:TOhtml
will be subject to breaking changes
I take that back. Instead, let's add fix for this into that PR. Specifically, think we can fix this by our own implementation of conversion to HTML. Trying this out, ~70 lines of Vim script does the job for us, MUCH less complex than Also, the custom Vim script so far is almost 2x faster than |
Holy shit. That's great news. Please post whatever you write so I can learn from it, I'm very poor at vimscript. (Maybe it could even be in lua and be faster still.) |
Done! It's now part of #84.
The pushed version seems to be ~1.5-1.6x faster than
It does use Lua in Neovim where appropriate. This doesn't include code dealing with |
This is sick, dude, thank you for taking care of all this. |
As part of looking into #85 I ran our syntax highlighting tests against the latest Neovim development pre-release (
NVIM v0.10.0-dev-2849+g4946489e2
). It went badly:The strings our test runner expects in the HTML were not present, so it panicked.
After fixing (1), 100% of our test cases failed. This appears to be due to changes in
:TOhtml
:justRecipeParenDefault
andjustShellSetValue
), are now appearing in the html. These are implementation details that should not be required to match to pass the tests.That's only what I noticed, might have missed other differences.
Not sure we need to do anything at this stage, since this is pre-release and our tests pass with latest Neovim release 0.9.5, but thought this should be noted.
The text was updated successfully, but these errors were encountered: