From 36bc7050b05762ea3515783c4a5aa00381a42562 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 25 Oct 2024 13:32:29 +0200 Subject: [PATCH] fix(lemminx): enable default formatter --- lua/lsp/config/lemminx.lua | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/lua/lsp/config/lemminx.lua b/lua/lsp/config/lemminx.lua index 417508b..4fc95b5 100644 --- a/lua/lsp/config/lemminx.lua +++ b/lua/lsp/config/lemminx.lua @@ -8,34 +8,6 @@ return { name = "lemminx", dependencies = { "xmlformatter" }, }, - keymaps = { - { - mode = "n", - lhs = "lf", - rhs = function() - utils.format({ - cmd = { - "xmlformat", - "-", - }, - output = "stdout", - }) - end, - }, - { - mode = "x", - lhs = "lf", - rhs = function() - utils.format({ - cmd = { - "xmlformat", - "-", - }, - output = "stdout", - }) - end, - }, - }, lspconfig = { filetypes = { "xml", @@ -50,7 +22,7 @@ return { settings = { xml = { format = { - enabled = false, -- is able to format document + enabled = true, -- is able to format document splitAttributes = true, -- each attribute is formatted onto new line joinCDATALines = false, -- normalize content inside CDATA joinCommentLines = false, -- normalize content inside comments