DOT Language Server

3.1.0 · active · verified Sun Apr 19

The `dot-language-server` package provides a robust Language Server Protocol (LSP) implementation specifically tailored for the DOT language, which is commonly used with Graphviz. Currently at version 3.1.0, the project follows an active release cadence, with major versions introducing significant shifts like the recent transition to ECMAScript Modules (ESM) and a strict Node.js v22+ requirement in version 3.x. Its primary differentiator is its dedicated support for DOT syntax, offering features such as refactorings, diagnostics, and code completion to various LSP-compatible editors like Vim, Neovim, Visual Studio Code, Sublime Text, and Emacs. Unlike general-purpose language tools, `dot-language-server` focuses exclusively on providing a rich development experience for Graphviz users, integrating directly into editor workflows rather than requiring external compilation or visualization steps. It functions as a standalone executable.

Common errors

Warnings

Install

Imports

Quickstart

This configuration snippet demonstrates how to integrate the `dot-language-server` into Sublime Text using the LSP package, enabling rich language features for DOT files. It includes a specific note for Windows users regarding the executable path.

{
	"clients": {
		"dot-language-server": {
			"command": ["dot-language-server", "--stdio"],
			"enabled": true,
			"languageId": "dot",
			"scopes": ["source.dot"],
			"syntaxes": ["Packages/Graphviz/DOT.sublime-syntax"]
		}
	}
}
// Note for Windows Users: You have to append `.cmd` to the first entry in the `command` array
// (e.g., ["dot-language-server.cmd", "--stdio"]), or ensure shell execution is enabled,
// for the server executable to be correctly located and run.

view raw JSON →