diff options
| author | William Boman <william@redwill.se> | 2021-08-18 20:35:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 20:35:02 +0200 |
| commit | bb6c9441af692daf9b967a15324f574f601d4b52 (patch) | |
| tree | 853987daa609778bf3a64658f09eb0626d54ae7c /CUSTOM_SERVERS.md | |
| parent | doc: add section for custom servers (diff) | |
| download | mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar.gz mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar.bz2 mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar.lz mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar.xz mason-bb6c9441af692daf9b967a15324f574f601d4b52.tar.zst mason-bb6c9441af692daf9b967a15324f574f601d4b52.zip | |
add new on_server_ready() API (#56)
Diffstat (limited to 'CUSTOM_SERVERS.md')
| -rw-r--r-- | CUSTOM_SERVERS.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CUSTOM_SERVERS.md b/CUSTOM_SERVERS.md index 31938b48..f0d548d8 100644 --- a/CUSTOM_SERVERS.md +++ b/CUSTOM_SERVERS.md @@ -11,10 +11,11 @@ to the [Lua docs](./lua/nvim-lsp-installer/server.lua) for more details. Each `Server` instance must provide an `installer` property. This _must_ be a function with the signature `function (server, callback)`, where `server` is the server instance that is being installed, and `callback` is a function that _must_ be called upon completion (successful or not) by the installer implementation. -Most likely, nvim-lsp-installer already have the installer implementations you'd need. You may find the available installers below. - ## Core installers +Most likely, nvim-lsp-installer already have the installer implementations you need. Below are all the currently +available installers that are available out of the box. + - ### Go #### `go.packages(packages: table)` @@ -36,7 +37,7 @@ Most likely, nvim-lsp-installer already have the installer implementations you'd - ### npm - #### `npm3.packages(packages: table)` + #### `npm.packages(packages: table)` Returns an installer that installs the provided list of `packages`. @@ -45,7 +46,7 @@ Most likely, nvim-lsp-installer already have the installer implementations you'd ```lua local npm = require "nvim-lsp-installer.installers.npm" - local installer = npm.packages { "graphql-language-service-cli", "graphql" }, + local installer = npm.packages { "graphql-language-service-cli", "graphql" } ``` #### `npm.executable(root_dir: string, executable: string)` |
