diff options
| author | William Boman <william@redwill.se> | 2021-12-10 18:46:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 09:46:28 -0800 |
| commit | ce999f315fd540ca27d328fd47b8b4fddc4af08d (patch) | |
| tree | 5aca0c35a132bc3e3d79990f26452a313a7c3e75 /lua | |
| parent | fix(spectral): add more root_dirs (#1550) (diff) | |
| download | nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar.gz nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar.bz2 nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar.lz nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar.xz nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.tar.zst nvim-lspconfig-ce999f315fd540ca27d328fd47b8b4fddc4af08d.zip | |
fix: add missing cmds for lemminx and sqls (#1551)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/lemminx.lua | 10 | ||||
| -rw-r--r-- | lua/lspconfig/server_configurations/sqlls.lua | 10 |
2 files changed, 2 insertions, 18 deletions
diff --git a/lua/lspconfig/server_configurations/lemminx.lua b/lua/lspconfig/server_configurations/lemminx.lua index 3ca6fe97..47f783e1 100644 --- a/lua/lspconfig/server_configurations/lemminx.lua +++ b/lua/lspconfig/server_configurations/lemminx.lua @@ -2,6 +2,7 @@ local util = require 'lspconfig.util' return { default_config = { + cmd = { 'lemminx' }, filetypes = { 'xml', 'xsd', 'svg' }, root_dir = util.find_git_ancestor, single_file_support = true, @@ -12,15 +13,6 @@ https://github.com/eclipse/lemminx The easiest way to install the server is to get a binary at https://download.jboss.org/jbosstools/vscode/stable/lemminx-binary/ and place it in your PATH. -**By default, lemminx doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped lemminx. - -```lua -require'lspconfig'.lemminx.setup{ - cmd = { "/path/to/lemminx/lemminx" }; - ... -} -``` - NOTE to macOS users: Binaries from unidentified developers are blocked by default. If you trust the downloaded binary from jboss.org, run it once, cancel the prompt, then remove the binary from Gatekeeper quarantine with `xattr -d com.apple.quarantine lemminx`. It should now run without being blocked. ]], diff --git a/lua/lspconfig/server_configurations/sqlls.lua b/lua/lspconfig/server_configurations/sqlls.lua index b6297dd1..434a7ce8 100644 --- a/lua/lspconfig/server_configurations/sqlls.lua +++ b/lua/lspconfig/server_configurations/sqlls.lua @@ -2,6 +2,7 @@ local util = require 'lspconfig.util' return { default_config = { + cmd = { 'sql-language-server', 'up', '--method', 'stdio' }, filetypes = { 'sql', 'mysql' }, root_dir = util.root_pattern '.sqllsrc.json', settings = {}, @@ -10,15 +11,6 @@ return { description = [[ https://github.com/joe-re/sql-language-server -`cmd` value is **not set** by default. The `cmd` value can be overridden in the `setup` table; - -```lua -require'lspconfig'.sqlls.setup{ - cmd = {"path/to/command", "up", "--method", "stdio"}; - ... -} -``` - 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> ]], |
