api: highlight update for neovim-0-12 and neovim-nightly - #312
api: highlight update for neovim-0-12 and neovim-nightly#312Alexdelia wants to merge 11 commits into
neovim-0-12 and neovim-nightly#312Conversation
|
my dumb ass didn't check if a PR was already open with this fix and there is one: #303 sorry about the duplicate |
|
re-open as #303 is not complete will give it a shot at completing it on this |
SetHighlightOpts struct for neovim-0-12SetHighlightOpts struct for neovim-0-12
SetHighlightOpts struct for neovim-0-12SetHighlightOpts struct for neovim-0-12
SetHighlightOpts struct for neovim-0-12SetHighlightOpts struct for neovim-0-12
SetHighlightOpts struct for neovim-0-12neovim-0-12 and neovim-nightly
dd2d1a5 to
22802f8
Compare
|
Thank you for taking over this issue, I've been putting off finishing my own PR for two months now because I've become obsessed with the idea of using |
|
@Alexdelia hello, could you please merge the What it does: add version feature commentsAdds comments like Rationale: Most of the codebase contains these comments so it would be appropriate to add them here too. compact
|
@c-c-k thank you very much for the contribution, the code is much better now I agree with the c.to_object().unwrap().into_dictionary_unchecked()this makes the code much easier to understand and maintain It does add an extra I've added your no visible regression on my |
Sorry I was focused on copying builder/serde/conversion logic and didn't think things through, try to replace: unsafe {
c.to_object()
.expect("HighlightCterm.to_object() failed")
.into_dictionary_unchecked()
}with: Self::try_from(
c.to_object().expect("HighlightCterm.to_object() failed"),
)
.expect("Dictionary::try_from(HighlightCterm.to_object()) failed") |
|
thanks, fixed in bc3838f |
solve #311
implement:
SetHighlightOptsforneovim-0-12&neovim-nightlyHighlightCtermforneovim-0-12&neovim-nightlyalso organize & add more test related to highlight
first time contributing to this repo, I did not see any guideline, but I ran:
I also tested my fork with my plugin vity.nvim and my
nixos/home-managerconfig https://github.com/Alexdelia/nixconf