#configuration #language #nix #nickel

app nickel-lang-lsp

NLS: A language server for the Nickel configuration language

10 releases (stable)

1.4.1 Jan 25, 2024
1.3.0 Nov 16, 2023
1.1.1 Jul 10, 2023
0.2.1 Aug 5, 2022
0.1.0 Mar 9, 2022

#239 in Development tools

Download history 16/week @ 2023-11-01 8/week @ 2023-11-08 66/week @ 2023-11-15 25/week @ 2023-11-22 36/week @ 2023-11-29 12/week @ 2023-12-06 20/week @ 2023-12-13 20/week @ 2023-12-20 13/week @ 2023-12-27 20/week @ 2024-01-03 57/week @ 2024-01-10 12/week @ 2024-01-17 58/week @ 2024-01-24 28/week @ 2024-01-31 17/week @ 2024-02-07 313/week @ 2024-02-14

420 downloads per month

MIT and LGPL-3.0-only

1.5MB
30K SLoC

Nickel Language Server

The Nickel Language Server (NLS) is a language server for the Nickel programming language. NLS offers error messages, type hints, and auto-completion right in your favorite LSP-enabled editor.

NLS is a stand-alone binary. Once built, you must then configure you code editor to use it for Nickel source files. This document covers building NLS and using it in VSCode, (Neo)Vim and Emacs.

Formatting Capabilities

Warning: because the cargo registry (crates.io) requires that all dependencies of Nickel are published there as well, the format feature isn't enabled when installing nls with cargo install as of NLS version 1.3.0. In this case, to enable formatting in NLS, you have to make the topiary executable available in your PATH. Please follow Topiary's setup instructions and ensure in particular that the environment variable TOPIARY_LANGUAGE_DIR is correctly set (this is covered in the setup instructions).

Formatting in nls is currently based on Topiary, used as a library. No configuration or external dependencies are necessary.

Dependencies

~31MB
~571K SLoC