[ADD] xml lsp configuration

This commit is contained in:
Daveanand Mannie
2026-01-12 14:29:11 -05:00
parent 8006bc52e8
commit 51bb7213d0

View File

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