Skip to content

Commit 74dbec3

Browse files
authored
Docs: add instructions for MediaWiki language server (#2611)
1 parent fbb740b commit 74dbec3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/src/language_servers.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,37 @@ An LSP server for Markdown that provides completion, go to definition, find refe
429429

430430
Follow installation instructions on [LSP-marksman](https://github.com/sublimelsp/LSP-marksman).
431431

432+
## MediaWiki
433+
434+
1. Install the [Mediawiker](https://packagecontrol.io/packages/Mediawiker) package from Package Control for syntax highlighting.
435+
2. Install the `wikitext-lsp` package:
436+
437+
```sh
438+
npm install -g wikitext-lsp
439+
```
440+
441+
3. Open `Preferences > Package Settings > LSP > Settings` and add the `"mediawiki"` client configuration to the `"clients"`:
442+
443+
444+
```jsonc
445+
{
446+
"clients": {
447+
"mediawiki": {
448+
"enabled": true,
449+
"command": [
450+
"/path/to/your/node",
451+
"/path/to/your/globally/installed/wikitext-lsp",
452+
"--stdio"
453+
],
454+
"selector": "text.html.mediawiki",
455+
"settings": {
456+
// Please refer to https://www.npmjs.com/package/wikitext-lsp#configuration
457+
}
458+
}
459+
}
460+
}
461+
```
462+
432463
## Nim
433464

434465
Follow installation instructions on [LSP-nimlangserver](https://github.com/sublimelsp/LSP-nimlangserver).

0 commit comments

Comments
 (0)