[ADD] xml lsp configuration
This commit is contained in:
@@ -1,3 +1,27 @@
|
|||||||
|
-- return {
|
||||||
|
-- "neovim/nvim-lspconfig",
|
||||||
|
-- opts = {
|
||||||
|
-- servers = {
|
||||||
|
-- lemminx = {
|
||||||
|
-- init_options = {
|
||||||
|
-- settings = {
|
||||||
|
-- xml = {
|
||||||
|
-- format = {
|
||||||
|
-- enabled = true,
|
||||||
|
-- splitAttributes = false,
|
||||||
|
-- },
|
||||||
|
-- validation = {
|
||||||
|
-- noGrammar = "ignore",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
--
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
@@ -8,7 +32,17 @@ return {
|
|||||||
xml = {
|
xml = {
|
||||||
format = {
|
format = {
|
||||||
enabled = true,
|
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 = {
|
validation = {
|
||||||
noGrammar = "ignore",
|
noGrammar = "ignore",
|
||||||
|
|||||||
Reference in New Issue
Block a user