DEVELOPER TOOLING

Language Server Protocol (LSP)

TezzNative includes a high-performance native Language Server daemon (tezz_lsp.exe) implementing the LSP v3.17 specification for full autocompletion, hover diagnostics, and definition navigation in any editor.

Download tezz_lsp.exe Get VS Code Extension

Real-Time Diagnostics

Instant syntax validation, missing colon detection, type mismatch warnings, and compile-time checks as you type.

Hover Type Inspection

Hover over functions, variables, structs, or tensor shapes to view signature types and documentation.

Go to Definition (F12)

Jump directly to function declarations, imported modules, structs, and constants across workspace files.

Smart Autocompletion

Context-aware completions for keywords (async, await, defer), module exports, and tensor methods.

Editor Setup Instructions

1. Neovim (nvim-lspconfig)

Add the following snippet to your init.lua or LSP configuration file:

local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')

if not configs.tezz_lsp then
  configs.tezz_lsp = {
    default_config = {
      cmd = { "tezz_lsp.exe" },
      filetypes = { "tezz", "tn" },
      root_dir = lspconfig.util.root_pattern("tezz.mod", ".git"),
      settings = {},
    },
  }
end

lspconfig.tezz_lsp.setup({})

2. Zed Editor

In ~/.config/zed/settings.json, register the language server:

{
  "languages": {
    "TezzNative": {
      "language_servers": ["tezz-lsp"]
    }
  },
  "lsp": {
    "tezz-lsp": {
      "binary": { "path": "tezz_lsp.exe" }
    }
  }
}

3. Visual Studio Code & Cursor AI

Install the official tezznative-vscode extension package:

code --install-extension tezznative-language-2.2.vsix
# Extension bindings are also automatically configured by the CLI installer!