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",