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: add fsharp support #118

Closed
wants to merge 6 commits into from
Closed

Conversation

Nsidorenco
Copy link

This PR aims to add support for FSharp files using the fsharp tree sitter grammar.

Will eventually close #82

for _, captures in parsed_query:iter_matches(root, source) do
and vim.treesitter.query.parse(lang, framework_query)
or vim.treesitter.parse_query(lang, framework_query)
for _, node, _, _ in parsed_query:iter_captures(root, source) do
Copy link
Author

@Nsidorenco Nsidorenco Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this changes the behavior or not, but on nightly iter_matches have been changed/fixed to return all matches instead of only the last one.

Comment on lines +12 to +19
require("plenary.filetype").add_table({
extension = {
["fs"] = [[fsharp]],
["fsx"] = [[fsharp]],
["fsi"] = [[fsharp]],
},
})

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed since plenary does not know about fsharp and neotest uses plenary's file detection

@Nsidorenco Nsidorenco marked this pull request as ready for review October 1, 2024 17:52
@Issafalcon
Copy link
Owner

Hi @Nsidorenco . Thank you for this work! It looks good! I have a few other things on my plate at the moment, but I'll come back to this ASAP.

@Nsidorenco Nsidorenco closed this Nov 19, 2024
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.

Add support for F#
2 participants