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/lspconfig/server_configurations/lemminx.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/lspconfig/server_configurations/lemminx.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/lemminx.lua | 10 |
1 files changed, 1 insertions, 9 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. ]], |
