diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2020-12-28 17:32:20 -0800 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-03 06:53:43 -0800 |
| commit | 93c34311581ed9db125b1c41c87b8d3af7dc4c41 (patch) | |
| tree | 21f20f2afc1b197b725ec1c5bab4eea9799e4cc6 /lua/lspconfig/sqlls.lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar.gz nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar.bz2 nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar.lz nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar.xz nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.tar.zst nvim-lspconfig-93c34311581ed9db125b1c41c87b8d3af7dc4c41.zip | |
Remove all installers and install logic
Diffstat (limited to 'lua/lspconfig/sqlls.lua')
| -rw-r--r-- | lua/lspconfig/sqlls.lua | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lua/lspconfig/sqlls.lua b/lua/lspconfig/sqlls.lua index aced4e02..6e0734d6 100644 --- a/lua/lspconfig/sqlls.lua +++ b/lua/lspconfig/sqlls.lua @@ -2,13 +2,6 @@ local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' local server_name = "sqlls" -local bin_name = "sql-language-server" - -local installer = util.npm_installer { - server_name = server_name; - packages = { "sql-language-server" }; - binaries = {bin_name}; -} local root_pattern = util.root_pattern(".sqllsrc.json") @@ -20,19 +13,11 @@ configs[server_name] = { end; settings = {}; }; - on_new_config = function(config) - local install_info = installer.info(); - local P = util.path.join - if install_info.is_installed then - local bin_ex = P{install_info.bin_dir, bin_name} - config.cmd = {bin_ex, "up", "--method", "stdio"} - end - end; docs = { description = [[ https://github.com/joe-re/sql-language-server -`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; +`cmd` value is **not set** by default. The `cmd` value can be overriden in the `setup` table; ```lua require'lspconfig'.sqlls.setup{ @@ -41,12 +26,10 @@ require'lspconfig'.sqlls.setup{ } ``` -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). +This LSP can be installed via `npm`. 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> ]]; }; } -configs[server_name].install = installer.install -configs[server_name].install_info = installer.info -- vim:et ts=2 sw=2 |
