-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
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 |
There was a problem hiding this comment.
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.
require("plenary.filetype").add_table({ | ||
extension = { | ||
["fs"] = [[fsharp]], | ||
["fsx"] = [[fsharp]], | ||
["fsi"] = [[fsharp]], | ||
}, | ||
}) | ||
|
There was a problem hiding this comment.
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
57f3ffa
to
c55d700
Compare
c55d700
to
33dc436
Compare
860b224
to
4538c8e
Compare
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. |
This PR aims to add support for FSharp files using the fsharp tree sitter grammar.
Will eventually close #82