From 34957ea6d092909644e3f90236dc7cb5c5df8142 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 9 Sep 2023 04:27:17 +0200 Subject: [PATCH] Update lemminx config --- lua/lsp/config/lemminx.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lua/lsp/config/lemminx.lua b/lua/lsp/config/lemminx.lua index 842b9e7..a0341b9 100644 --- a/lua/lsp/config/lemminx.lua +++ b/lua/lsp/config/lemminx.lua @@ -30,13 +30,19 @@ return { settings = { xml = { format = { - splitAttributes = true, - joinCDATALines = false, - joinContentLines = true, - joinCommentLines = false, - spaceBeforeEmptyCloseLine = false, - enabled = true, + enabled = true, -- is able to format document + splitAttributes = false, -- each attribute is formatted onto new line + joinCDATALines = false, -- normalize content inside CDATA + joinCommentLines = false, -- normalize content inside comments + formatComments = true, -- keep comment in relative position + joinContentLines = false, -- normalize content inside elements + spaceBeforeEmptyCloseLine = true, -- insert whitespace before self closing tag end bracket }, + validation = { + noGrammar = "hint", + enabled = true, + schema = true, + } }, }, },