[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 {
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user