dot-language-server

Language server for the DOT language

Usage no npm install needed!

<script type="module">
  import dotLanguageServer from 'https://cdn.skypack.dev/dot-language-server';
</script>

README

dot-language-server

Build Status Dependency Status npm version

A language Server for the DOT language/Graphviz.

Prerequisites

  • Node.js >=7.9
  • npm

Installation

npm i -g dot-language-server

If you want to request or implement new features, head over to dot-language-support.

Features

Refactorings

Refactorings Demo in Sublime Text

Usage

Visual Studio Code

TODO: There's an Extension for that.

Sublime Text

  1. Install LSP support via Install Package -> LSP
  2. Go to Preferences: LSP Settings
  3. Add this to clients:
{
    "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 (or, if possible, enable shell execution).

...and you're done!