Skip to content
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

fix: use alternative oxi binding to get filetype #28

Merged
merged 3 commits into from
Feb 27, 2023

Conversation

PriceHiller
Copy link
Contributor

This solution works, but is quite hacky. It doesn't seem to break the api for end users though, and currently works on nightly. It likely works on 0.8 as well.

This closes #26 for now. Once nvim-oxi gets updated this hack around should be replaced with what was previously there.

This should also close #10.

I have only tested against nightly, it would be wise to also test this against 0.8, as this may end up being a breaking change for older neovim builds (though I doubt it, it calls directly into VimL).

This solution works, but is quite hacky. It doesn't seem to break the
api for end users though, and currently works on nightly. It likely
works on 0.8 as well.
Instead of causing an immediate panic when a filetype can't be found,
instead boil an error up for user presentation stating a filetype isn't
found. This ensures Neovim doesn't just up and die when a panic occurs.
@krivahtoo
Copy link
Owner

Tested on 0.8. Seems to work as expected.

@krivahtoo krivahtoo merged commit 51aa0c4 into krivahtoo:main Feb 27, 2023
@krivahtoo
Copy link
Owner

Thanks

@PriceHiller PriceHiller deleted the fix/filetype-option branch February 27, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants