Crystal.novaextension

Crystal support for Panic's Nova editor.

Provides syntax highlighting for Crystal Lang.

screenshot

Language Support

The goal is to support every common situation and a handful of edgecases depending on how esoteric and difficult (or possible) to support with Nova's syntax highlighting rules.

No plans at the moment for .ecr as the author doesn't uses it.

Formatting

This extension can optionally format the current file using crystal tool format. However, the path to crystal must be configured first. From the Project menu, select Project Settings.... Then in the Crystal sidebar fill out the path to the Crystal Executable. It's probably the output of which crystal on your command line but who knows! User paths are allowed, e.g. ~/.asdf/shims/crystal.

To format a crystal file either use the key command Option-Shift-C or check the Format on Save option which will run the command every time a crystal file is saved.

All these options are set per-project so that different Crystal versions might be used for each project.

Future Plans

Install Locally

Download this repo (via git or the download button up top), and open up the Crystal.novaextension folder with Nova. It will ask if you want to Install or Open for Editing.

Choose Install.

TODO

  • Block support with curly braces (as opposed to do...end)
    • markups.flat_map { |markup| [markup.start, markup.end] }
Repository

Crystal.novaextension

Owner
Statistic
  • 2
  • 0
  • 0
  • 0
  • 0
  • over 2 years ago
  • May 25, 2021
License

Links
Synced at

Sat, 04 May 2024 05:52:52 GMT

Languages