← All extensions

prolog

v0.0.2 · by Piefayth, Gaspartcho · added 3 November 2026

tree-sitter-prolog integration for zed

Languages

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for prolog. The extension's id is prolog.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Prolog support for Zed

Forked from this extension by Piefayth, now unmaintained.

This extension provides a Tree-sitter grammar (and corresponding queries for syntax highlighting, bracket matching, indentation, and injections) as well as a LSP for the Prolog language.

It also provides a set of tasks:

  • "Prolog: Run SWI-Prolog": Opens a new instance of SWI-Prolog
  • "Prolog: Run file"

Requirements / Notes

In order for the tasks and the LSP to work, make sure you have a recent version of SWI-Prolog installed.

The language server will not work on Windows.

The language server will not work if the path to the file contains a space.

The Language server has been disabled for stability issues. If anyone manages to get it working please make a PR (some code is already present in the lib.rs file).

External links

Tree sitter grammar: https://codeberg.org/foxy/tree-sitter-prolog

Language Server: https://github.com/jamesnvc/lsp_server