From 703e81f8119e673e9500e219f7d97ddb4b4df295 Mon Sep 17 00:00:00 2001 From: chuyanlong Date: Mon, 8 Sep 2025 16:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/lazyvim/plugins/extras/lang/xml.lua | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/xml.lua diff --git a/lua/lazyvim/plugins/extras/lang/xml.lua b/lua/lazyvim/plugins/extras/lang/xml.lua new file mode 100644 index 00000000..7da7f40b --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/xml.lua @@ -0,0 +1,35 @@ +return { + recommended = function() + return LazyVim.extras.wants({ + ft = { + "xml", + "xhtml", + "svg", + "wsdl", + "xsl", + "xslt", + "xquery", + "xjb", + "xsd", + "xlf", + "xul", + }, + }) + end, + { + "nvim-treesitter/nvim-treesitter", + opts = { ensure_installed = { "xml", "html" } }, + }, + { + "mason-org/mason.nvim", + opts = { ensure_installed = { "lemminx" } }, + }, + { + "neovim/nvim-lspconfig", + opts = function(_, opts) + vim.tbl_deep_extend("force", opts.servers, { + lemminx = {}, + }) + end, + }, +}