Giter Site home page Giter Site logo

thebaronalex / unified-language-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unifiedjs/unified-language-server

0.0 1.0 0.0 95 KB

A language server for text, using @unifiedjs

Home Page: https://unifiedjs.com

License: MIT License

JavaScript 100.00%

unified-language-server's Introduction

Unified-Language-Server

A language server for text.

demo gif

It supports all formats Unified.JS can understand:

And it provides:

  • prose and syntax checking
  • formatting (in progress)

Install

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 for text
  • unified-language-server --parser=remark-parse --stdio for markdown

For NeoVim

"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!

Configuration

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:

  1. because we launched it with --parser=remark-parse, it finds the setting with the same name
  2. applies all the plugins:
  3. remark-preset-lint-markdown-style-guide checks for markdown usage
  4. remark-retext extracts the texts from markdown
  5. retext-profanities about usage of profanity words
  6. retext-spell does spellcheck

More detail on configuration is available at CONFIGURATION.md

Contributing

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)

unified-language-server's People

Contributors

aecepoglu avatar christianmurphy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.