I have successfully made a #Neovim autocommand that adds the Dart and #Flutter commands from the project's linked SDK to my PATH, so when I :cd to, for example, Squirrel Maps, the project's SDKs, installed with FVM, become available for my language server!

Before I finished posting this I rewrote it into the second version which also cleans itself up.

Reply to this note

Please Login to reply.

Discussion

I've also answered a question on Vi and Vim Stack Exchange about adding to the PATH in Lua because it was one of the first results when I searched for it. Proud of myself 😊