IDE Plugins & Extensions

GoHT editor extensions provide syntax support and use the GoHT LSP where applicable. VS Code, JetBrains IDEs, and TextMate-compatible editors have published integration points. The VS Code and JetBrains integrations use the GoHT language server for .goht files.

GoHT (LSP)

The plugins and extensions make use of the LSP functionality built into the GoHT CLI. This allows us to provide a consistent experience across different editors and IDEs.

GoHT needs to be installed and available in your PATH for the plugins and extensions to work. You can install GoHT by running the following command:

$ go install github.com/stackus/goht/cmd/goht@latest

TextMate-compatible editors can use the bundle for basic, work-in-progress syntax highlighting.

Go Language Server Protocol (LSP)

The plugins and extensions for GoHT are built on top of the Go Language Server Protocol (LSP).

Installation

When you enable basic Go support in your IDE, the gopls LSP server is typically installed as well. This is the server that the GoHT LSP server depends on. If you don’t have it installed, you can install it by running the following command:

$ go install golang.org/x/tools/gopls@latest