Files
lazy_config/lua/plugins/langs/xml/nvim-lspconfig.lua
2026-01-12 14:29:11 -05:00

57 lines
1.2 KiB
Lua

-- return {
-- "neovim/nvim-lspconfig",
-- opts = {
-- servers = {
-- lemminx = {
-- init_options = {
-- settings = {
-- xml = {
-- format = {
-- enabled = true,
-- splitAttributes = false,
-- },
-- validation = {
-- noGrammar = "ignore",
-- },
-- },
-- },
-- },
-- },
-- },
-- },
-- }
--
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
lemminx = {
init_options = {
settings = {
xml = {
format = {
enabled = true,
enforceQuoteStyle = "preferred",
maxLineWidth = 140,
splitAttributes = "preserve",
preserveAttributeLineBreaks = true,
-- respect new lines
preservedNewlines = 2,
joinContentLines = false,
experimental = true,
},
preferences = {
quoteStyle = "double",
},
validation = {
noGrammar = "ignore",
},
},
},
},
},
},
},
}