Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>NabiNew to Visual Studio Code? Get it now.
Nabi

Nabi

nabi-lang

| (0) | Free
Nabi language support: syntax highlighting and the nabils language server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Nabi

Nabi for Visual Studio Code

CI License: MIT OR Apache-2.0

Nabi language support: syntax highlighting for .nabi and .nabion, and the Nabi language server nabils.

Features

  • Syntax highlighting from the nabi-syntax grammars.
  • From nabils, over LSP:
    • diagnostics as you type
    • hover
    • completion
    • go to definition
    • find references
    • rename
    • document symbols
    • formatting
    • semantic highlighting of macros, user-defined literal suffixes, keywords and operators
    • signature help
    • quick fixes, including nabi add for a missing package
  • One server for every folder of a multi-root workspace; each file is checked against its own package.
  • Nabi: Restart the Language Server in the command palette.

Install

Not on the VS Code Marketplace or Open VSX yet. Build the .vsix from this repository (Node 24 or newer) and install it:

git clone https://github.com/nabi-lang/nabi.vscode && cd nabi.vscode
npm ci && npm run package
code --install-extension nabi-0.1.0.vsix

Each CI run on main also uploads the .vsix as its vsix artifact.

Requirements

Install Nabi 0.1 or later so nabils is on your PATH.

Linux and macOS:

curl -fsSL https://nabi.sh | sh

Windows (PowerShell):

powershell -ExecutionPolicy Bypass -c "irm https://nabi.sh/install.ps1 | iex"

More at https://nabi-lang.org/download. Without nabils you still get highlighting.

Settings

Setting Default Description
nabi.server.path nabils Path to nabils, if it is not on PATH.
nabi.server.enable true Run the language server. Off: highlighting only.

A change to either restarts the server.

Grammars

syntaxes/nabi.tmLanguage.json (source.nabi) and syntaxes/nabion.tmLanguage.json (source.nabion) are copies of the grammars in nabi-syntax, at the commit in nabi-syntax.rev. Change them there, then sync:

node scripts/sync-grammar.mjs --from ../nabi-syntax   # copy from a checkout, pin its HEAD
node scripts/sync-grammar.mjs                         # fetch at the pinned commit
node scripts/sync-grammar.mjs --check                 # what CI runs

r#match is one word for double-click and word motions.

Build and test

Node 24 or newer.

npm ci
npm run compile    # type-check, bundle into out/extension.js
npm test           # start VS Code with the extension on test/fixture
npm run package    # -> nabi-<version>.vsix
code --install-extension nabi-<version>.vsix

npm test downloads VS Code into .vscode-test/ (VSCODE_TEST_CACHE moves it) and checks that nabils starts, answers hover and reports a type error as it is typed. NABILS=/path/to/nabils tests another server. On Linux without a display, run it under xvfb-run -a.

Releasing is in CONTRIBUTING.md.

License

Licensed under either of MIT or Apache-2.0, at your option.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft