nushell / vscode-nushell-lang

A Nushell grammar for Visual Studio Code with IDE support
https://www.nushell.sh/
MIT License
122 stars 27 forks source link

feat(snippets): markdown doc sections #127

Closed EmilyGraceSeville7cf closed 1 year ago

EmilyGraceSeville7cf commented 1 year ago

Snippets to quickly create docs for functions. Ideas for warnings and infos came after reading this post.

fdncred commented 1 year ago

sure. i don't think we can interpret the markdown but it's good. maybe vscode interprets it?

EmilyGraceSeville7cf commented 1 year ago

maybe vscode interprets it?

It looks like it does. But I don't like it works out of the box. Some headers are too big, like # # Examples. Maybe it's intended but, btw. I mean it looks ugly to have too big first level headers in docs. ;)

fdncred commented 1 year ago

You may have to look at the hover code in the ide.rs file in nushell to understand what's going on.