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

feat: solve language with nvim-treesitter as an optional dependency #30

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

atusy
Copy link
Contributor

@atusy atusy commented Feb 20, 2023

Currently, get_paresr assumes filetype contain the language name.

However, this is not always the case.
For example, I use hcl language parser for tf (Terraform) file.

This PR reduces this limitation by using nvim-treesitter if available.

This is similar to #27, but nvim-treesitter is optional.

@mfussenegger mfussenegger merged commit 017d232 into mfussenegger:master Feb 21, 2023
@mfussenegger
Copy link
Owner

Seems okay as compromise.

There's now also neovim/neovim#22207 so there's a good chance I'll nuke this at some point in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants