wikitext-lsp
v1.6.0
Published
Standalone language server for MediaWiki Wikitext
Maintainers
Readme
WikiParser Language Server
Language Server Protocol implementation for Wikitext.
Installation
You can install this via npm:
npm i -g wikitext-lspFeatures
Linting and quick fixes, offered by WikiLint
Auto-completion
Color preview
Code navigation
Followable wiki and external links
Symbol renaming
Code folding
Outline view
Hover
Help with parser function signatures
Inlay hints
Configuration
| Configuration | Description | Default | Example |
| :- | :- | :- | :- |
| wikiparser.articlePath | Specify the article path of the wiki site.Also set the parser configuration automatically for all language editions of Wikipedia. | | https://en.wikipedia.org/wiki/ |
| wikiparser.config | Manually specifiy the absolute path to the parser configuration file or the name of a preset configuration. | | enwiki |
| wikiparser.user | Specify the policy-compliant user information (a URI for wiki userpage or an email address) for the User-Agent header of HTTP requests sent to WMF sites from the language server. | | [email protected] or https://meta.wikimedia.org/wiki/User:Example |
| wikiparser.linter.enable | Enable diagnostics. | true | |
| wikiparser.linter.severity | Display or hide warnings. | errors only | errors and warnings |
| wikiparser.linter.config | Specify the path to the linter configuration file. It can be a path relative to the directory of the active file or an absolute path. | .wikilintrc.json or .wikilintrc.js | |
| wikiparser.linter.lilypond | Specify the path to the LilyPond executable to lint <score>. | | /opt/homebrew/bin/lilypond |
| wikiparser.completion | Enable auto-completion. | true | |
| wikiparser.color | Enable color decorators. | true | |
| wikiparser.hover | Enable hover information. | true | |
| wikiparser.inlay | Enable inlay hints for anonymous template/module parameters. | true | |
| wikiparser.signature | Enable parser function signature help. | true | |
Usage
wikitext-lsp --stdioChangelog
Please see the CHANGELOG of the associated VS Code extension.
