From 1b2ca8d4bdf2926c91ba49bb27d5f3111dac530d Mon Sep 17 00:00:00 2001 From: Evgeny Zislis Date: Thu, 4 Jan 2024 20:32:08 +0200 Subject: [PATCH] feat(lemminx): add the xml lsp - lemminx (#105) --- README.md | 14 +++++++++++++- init.lua | 1 + lua/lspcontainers/init.lua | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2baad20..0a7b391 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,8 @@ Below is a list of supported language servers for configuration with `nvim-lspco - [pyright](#pyright) - [rust_analyzer](#rust_analyzer) - [solargraph](#solargraph) -- [lua_ls](lua_ls) +- [lemminx](#lemminx) +- [lua_ls](#lua_ls) - [svelte](#svelte) - [tailwindcss](#tailwindcss) - [terraformls](#terraformls) @@ -434,6 +435,17 @@ require'lspconfig'.solargraph.setup { } ``` +### lemminx + +https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lemminx + +```lua +require'lspconfig'.lemminx.setup { + cmd = require'lspcontainers'.command('lemminx'), + ... +} +``` + ### lua_ls https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls diff --git a/init.lua b/init.lua index 57ccf9c..8bb9e24 100644 --- a/init.lua +++ b/init.lua @@ -75,6 +75,7 @@ local function setup_languages() "pyright", "rust_analyzer", "solargraph", + "lemminx", "lua_ls", "svelte", "tailwindcss", diff --git a/lua/lspcontainers/init.lua b/lua/lspcontainers/init.lua index 8b6c219..82702ea 100644 --- a/lua/lspcontainers/init.lua +++ b/lua/lspcontainers/init.lua @@ -60,6 +60,7 @@ local supported_languages = { pyright = { image = "docker.io/lspcontainers/pyright-langserver" }, rust_analyzer = { image = "docker.io/lspcontainers/rust-analyzer" }, solargraph = { image = "docker.io/lspcontainers/solargraph" }, + lemminx = { image = "docker.io/lspcontainers/lemminx" }, lua_ls = { image = "docker.io/lspcontainers/lua-language-server" }, svelte = { image = "docker.io/lspcontainers/svelte-language-server" }, tailwindcss= { image = "docker.io/lspcontainers/tailwindcss-language-server" },