-
Using Ionide in vs code, function declaration identifiers were highlighted differently than value declaration identifiers. I found this especially helpful when making a value declaration and accidentally forgetting parameters thus performing partial function application and creating a function instead of a value. Using neovim, with Ionide-vim plugin, I was inspecting the tree on some sample code it appears they can be differentiated, but I'm not sure what to make of that. I'm new to neovim in general and not sure if I should be looking at my color scheme, configuring ionide, or configuring treesitter itself. Any guidance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think treesitter is not used in VSCode to colour F#. I think this discussion can be moved to https://github.com/ionide/ionide-vscode-fsharp cc @baronfel |
Beta Was this translation helpful? Give feedback.
-
Hi! If I understood the question correctly you would like an identifier linked to function definition to be highlighted as a function throughout the document. In theory, it’s enable by the Maybe there is a plugin somewhere that enables it, but out of the box the highlighting is limited to what can be defined in |
Beta Was this translation helpful? Give feedback.
distinguishing between functions and values in F# is near impossible without type information, which tree-sitter doesn't have (nor want). Ionide uses semantic tokening after typechecking a file to provide those more in-depth colors.