31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
# LSP-prolog
|
|
|
|
Prolog support for Sublime's [LSP](https://packagecontrol.io/packages/LSP) package, via
|
|
[scryer-prolog](https://github.com/mthom/scryer-prolog)'s built-in `--lsp` server.
|
|
|
|
## Requirements
|
|
|
|
* The [LSP](https://packagecontrol.io/packages/LSP) package.
|
|
* A build of scryer-prolog whose `--lsp` flag runs a language server over stdio.
|
|
As of this writing that support only exists in a development fork; the flag is
|
|
not yet in released/upstream scryer-prolog builds. Make sure `scryer-prolog` is
|
|
on your `PATH`, or set the `command` setting below to its full path.
|
|
* A Prolog syntax package that assigns the `source.prolog` scope to `.pl`/`.pro` files
|
|
(LSP-prolog itself does not ship syntax highlighting).
|
|
|
|
## Installation
|
|
|
|
Clone or copy this directory into your Sublime Text `Packages` folder as `LSP-prolog`,
|
|
then restart Sublime Text.
|
|
|
|
## Configuration
|
|
|
|
Open `Preferences > Package Settings > LSP > Servers > LSP-prolog` to edit settings.
|
|
|
|
```jsonc
|
|
{
|
|
"command": ["scryer-prolog", "--lsp"],
|
|
"selector": "source.prolog"
|
|
}
|
|
```
|