From 51bb7213d007a206e2a9c72c87a5b2e2d637bf15 Mon Sep 17 00:00:00 2001 From: Daveanand Mannie Date: Mon, 12 Jan 2026 14:29:11 -0500 Subject: [PATCH] [ADD] xml lsp configuration --- lua/plugins/langs/xml/nvim-lspconfig.lua | 36 +++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/lua/plugins/langs/xml/nvim-lspconfig.lua b/lua/plugins/langs/xml/nvim-lspconfig.lua index e504394..9b5d926 100644 --- a/lua/plugins/langs/xml/nvim-lspconfig.lua +++ b/lua/plugins/langs/xml/nvim-lspconfig.lua @@ -1,3 +1,27 @@ +-- return { +-- "neovim/nvim-lspconfig", +-- opts = { +-- servers = { +-- lemminx = { +-- init_options = { +-- settings = { +-- xml = { +-- format = { +-- enabled = true, +-- splitAttributes = false, +-- }, +-- validation = { +-- noGrammar = "ignore", +-- }, +-- }, +-- }, +-- }, +-- }, +-- }, +-- }, +-- } +-- + return { "neovim/nvim-lspconfig", opts = { @@ -8,7 +32,17 @@ return { xml = { format = { enabled = true, - splitAttributes = false, + enforceQuoteStyle = "preferred", + maxLineWidth = 140, + splitAttributes = "preserve", + preserveAttributeLineBreaks = true, + -- respect new lines + preservedNewlines = 2, + joinContentLines = false, + experimental = true, + }, + preferences = { + quoteStyle = "double", }, validation = { noGrammar = "ignore",