diff options
| author | github-actions <github-actions@github.com> | 2021-12-20 00:02:13 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-12-20 00:02:13 +0000 |
| commit | 6008e7e2ce3195aa4ef710d7bce98be7751c63d2 (patch) | |
| tree | ac4abfcfef9e3e0f8b8d68e952f7c80d369c2957 /doc | |
| parent | feat: add grammarly support (#1562) (diff) | |
| download | nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar.gz nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar.bz2 nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar.lz nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar.xz nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.tar.zst nvim-lspconfig-6008e7e2ce3195aa4ef710d7bce98be7751c63d2.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/server_configurations.md | 35 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 35 |
2 files changed, 70 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index fb934374..2e9624a7 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -45,6 +45,7 @@ that config. This file is accessible in neovim via `:help lspconfig-server-confi - [ghcide](#ghcide) - [golangci_lint_ls](#golangci_lint_ls) - [gopls](#gopls) +- [grammarly](#grammarly) - [graphql](#graphql) - [groovyls](#groovyls) - [haxe_language_server](#haxe_language_server) @@ -1886,6 +1887,40 @@ require'lspconfig'.gopls.setup{} ``` +## grammarly + +https://github.com/emacs-grammarly/unofficial-grammarly-language-server + +`unofficial-grammarly-language-server` can be installed via `npm`: + +```sh +npm i -g @emacs-grammarly/unofficial-grammarly-language-server +``` + +WARNING: Since this language server uses Grammarly's API, any document you open with it running is shared with them. Please evaluate their [privacy policy](https://www.grammarly.com/privacy-policy) before using this. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.grammarly.setup{} +``` + +**Commands and default values:** +```lua + Commands: + + Default Values: + cmd = { "unofficial-grammarly-language-server", "--stdio" } + filetypes = { "markdown" } + handlers = { + ["$/updateDocumentState"] = <function 1> + } + root_dir = util.find_git_ancestor + single_file_support = true +``` + + ## graphql https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index fb934374..2e9624a7 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -45,6 +45,7 @@ that config. This file is accessible in neovim via `:help lspconfig-server-confi - [ghcide](#ghcide) - [golangci_lint_ls](#golangci_lint_ls) - [gopls](#gopls) +- [grammarly](#grammarly) - [graphql](#graphql) - [groovyls](#groovyls) - [haxe_language_server](#haxe_language_server) @@ -1886,6 +1887,40 @@ require'lspconfig'.gopls.setup{} ``` +## grammarly + +https://github.com/emacs-grammarly/unofficial-grammarly-language-server + +`unofficial-grammarly-language-server` can be installed via `npm`: + +```sh +npm i -g @emacs-grammarly/unofficial-grammarly-language-server +``` + +WARNING: Since this language server uses Grammarly's API, any document you open with it running is shared with them. Please evaluate their [privacy policy](https://www.grammarly.com/privacy-policy) before using this. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.grammarly.setup{} +``` + +**Commands and default values:** +```lua + Commands: + + Default Values: + cmd = { "unofficial-grammarly-language-server", "--stdio" } + filetypes = { "markdown" } + handlers = { + ["$/updateDocumentState"] = <function 1> + } + root_dir = util.find_git_ancestor + single_file_support = true +``` + + ## graphql https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli |
