A language server for text.
It supports all formats Unified.JS can understand:
- plain text
- markdown
- HTML
- and other syntax
And it provides:
- prose and syntax checking
- formatting (in progress)
yarn global add unified-language-server
# OR
npm install -g unified-language-server
And configure your text editor to use:
unified-language-server --parser=retext-english --stdio
fortext
unified-language-server --parser=remark-parse --stdio
formarkdown
"inside .vimrc
let g:LanguageClient_serverCommands = {
\ 'text': ['unified-language-server', '--parser=retext-english', '--stdio'],
\ 'markdown': ['unified-language-server', '--parser=remark-parse', '--stdio'],
\ }
And you're ready to go!
The server has default configurations for remark-parse
(for markdown) and remark-english
(for text):
{
"retext-english": {
"plugins": [
["#retext-profanities"],
["#retext-spell", "#dictionary-en-gb"]
],
},
"remark-parse": {
"plugins": [
["#remark-preset-lint-markdown-style-guide"]
["#remark-retext", "#parse-latin"],
["#retext-profanities"],
["#retext-spell", "#dictionary-en-gb"]
]
}
}
So, for a markdown file:
- because we launched it with
--parser=remark-parse
, it finds the setting with the same name - applies all the plugins:
remark-preset-lint-markdown-style-guide
checks for markdown usageremark-retext
extracts the texts from markdownretext-profanities
about usage of profanity wordsretext-spell
does spellcheck
More detail on configuration is available at CONFIGURATION.md
To contribute, please:
- Report any and all issues that you have
- In your issues make sure to mention:
- what version of the server you are running
- your configurations (if you have any)