diff options
| author | TJ Kolleh <tinatuh@gmail.com> | 2020-09-01 21:43:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-01 18:43:48 -0700 |
| commit | f0c4337942163db790e1d5e8dfddeb98add7f429 (patch) | |
| tree | 370ae83fe98324feb58c00c704763842c4247b43 /lua/nvim_lsp | |
| parent | sqlls #339 (diff) | |
| download | nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar.gz nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar.bz2 nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar.lz nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar.xz nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.tar.zst nvim-lspconfig-f0c4337942163db790e1d5e8dfddeb98add7f429.zip | |
sqlls: doc #341
* Add sql-language-server configuration
* reference install bin path from installer
* Remove attribute block document generation for sqlls. Clarify manual
installation instructions
Diffstat (limited to 'lua/nvim_lsp')
| -rw-r--r-- | lua/nvim_lsp/sqlls.lua | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/lua/nvim_lsp/sqlls.lua b/lua/nvim_lsp/sqlls.lua index a47801b3..b17bcbc6 100644 --- a/lua/nvim_lsp/sqlls.lua +++ b/lua/nvim_lsp/sqlls.lua @@ -18,6 +18,7 @@ configs[server_name] = { root_dir = function(fname) return root_pattern(fname) or vim.loop.os_homedir() end; + settings = {}; }; on_new_config = function(config) local install_info = installer.info(); @@ -28,26 +29,20 @@ configs[server_name] = { end end; docs = { - package_json = "https://raw.githubusercontent.com/joe-re/sql-language-server/release/package.json"; description = [[ - https://github.com/joe-re/sql-language-server +https://github.com/joe-re/sql-language-server - `cmd` value is **not set** by default. An installer is provided via this `:LspInstall` that uses the - nvm_lsp node_modules directory to find the executable. The `cmd` value can be overriden in `setup`; +`cmd` value is **not set** by default. An installer is provided via the `:LspInstall` command that uses the *nvm_lsp node_modules* directory to find the sql-language-server executable. The `cmd` value can be overriden in the `setup` table; - ```lua - require'nvim_lsp'.sqlls.setup{ - cmd = {"path/to/command", "up", "--method", "stdio"}; - ... - } - ``` - - Find further instructions on manual installation of the sql-language-server lsp at [joe-re/sql-language-server](https://github.com/joe-re/sql-language-server). +```lua +require'nvim_lsp'.sqlls.setup{ + cmd = {"path/to/command", "up", "--method", "stdio"}; + ... +} +``` - `sql-language-server` can be installed via `:LspInstall sqlls` or by yourself with `npm`: - ```sh - npm install -g sql-language-server - ``` +This LSP can be installed via `:LspInstall sqlls` or with `npm`. If using LspInstall, run `:LspInstallInfo sqlls` to view installation paths. Find further instructions on manual installation of the sql-language-server at [joe-re/sql-language-server](https://github.com/joe-re/sql-language-server). +<br> ]]; }; } |
