Nova

Extensions


Readme

Nix language support for Nova

This plugin provides Nix syntax highlighting and formatting support for the new Nova editor from Panic. It also provides formatting support which relies on the installation of nixfmt.

Installation

Once activated, files ending in .nix should automatically be recognized as Nix language files.

Features

  • Format document command
  • Format document on save
  • Syntax highlighting

Changelog

v0.8.0 - 2021-08-23

Chore & Maintenance

  • [core] Add tests. (#39)
  • [core] Switch to esbuild 🚀. (#37)
  • [core] Update extension & dev dependencies

Features

  • [syntax] Add folding to let blocks. (#43)

Fixes

  • [syntax] Add keywords to collection list. (#42)
  • [syntax] Allow apostrophe in identifiers. (#41)

v0.7.0 - 2021-08-14

Chore & Maintenance

  • [core] Update extension & dev dependencies

Features

  • [syntax] Add new operators (@ and ...). (#32)
  • [syntax] Add folding to multiline strings. (#30)
  • [syntax] Add more punctuation for better theming. (#28)
  • [core] Add shortcut for formatting command opt-shift-f. (#27)

Fixes

  • [syntax] Improve variables declarations for better theming. (#34)
  • [syntax] Allow 2 dots for local path strings. (#33)
  • [syntax] Ensure div operator is followed by space. (#31)
  • [syntax] Add highlighting for variable references. (#20)

v0.6.0 - 2021-07-30

Chore & Maintenance

  • [core] Minimize build output. (#19)
  • [core] Use readonly types. (#18)
  • [core] Update extension & dev dependencies

Features

  • [syntax] Add collapsing for collections (set & list). (#20)
  • [syntax] Improve list collections by including identifiers & syntax. (#20)
  • [syntax] Add highlighting for variable references. (#20)

Fixes

  • [syntax] Prevent assignments matching in the presence of a subsequent operator (e.g. <, =). (#20)

v0.5.0 - 2021-07-25

Chore & Maintenance

  • [core] Update dev dependencies

Features

  • [core] Add initial localization support for German & French. (#14)

Fixes

  • [formatter] Only activate on .nix files instead of on a workspace that contains .nix files. (#16)
  • [formatter] Restrict format command to only files with .nix extension. (#15)
  • [core] Remove filesystem entitlements -- not needed. (#13)
  • [formatter] Add composite disposable for proper extension cleanup. (#12)

v0.4.0 - 2021-07-23

Chore & Maintenance

  • [core] Update extension dependencies

Fixes

  • [formatter] Prevent save listeners for non .nix files. Prevent multiple on-save listeners for the same file. (#10)

v0.3.0 - 2021-07-16

Features

  • [syntax] Add syntax highlighting for function args, built-in global functions and Set keys. Update string templates to include expressions. (#8)

v0.2.0 - 2021-07-11

Features

  • [syntax] A syntax highlighting for operators, assignments, values, and string templates. (#4)

Fixes

  • [syntax] Removed syntax highlighting for punctuation (= | :). (#4)

v0.1.0 - 2021-07-10

Initial release 🎉

  • Format Command (requires nixfmt to be installed)
  • Format on Save (requires nixfmt to be installed)
  • Basic syntax highlighting
  • Global and Workspace configs

License

MIT License

Copyright (c) 2021 Hans Hoffman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.