Support nvim-0.7
's nvim_set_hl
api
#132
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pr adds support for nvim
0.7
's new apinvim_set_hl
. This pr also extends the compiler generate both a viml version and a nvim-0.7+ version. Nightfox will check if your editor isnvim-0.7+
before loading the correct precompiled file. When the user uses the compiler it also generates based on the editor's supported api.Performance Note
From my initial testing there is no significant difference between the viml version and nvim_set_hi version when dealing with compiled files. Slightly more of the time the
viml
version is faster. I have tried to benchmark/time this with different methods:--startuptime
require('plenary.profile').benchmark()
Unsure that there is any benifit from this pr. It would be great of others could assist in coming up with a way to validate that
nvim_set_hl
version is faster.Resolves: #131