fix(lemminx): enable default formatter
This commit is contained in:
@@ -8,34 +8,6 @@ return {
|
|||||||
name = "lemminx",
|
name = "lemminx",
|
||||||
dependencies = { "xmlformatter" },
|
dependencies = { "xmlformatter" },
|
||||||
},
|
},
|
||||||
keymaps = {
|
|
||||||
{
|
|
||||||
mode = "n",
|
|
||||||
lhs = "<leader>lf",
|
|
||||||
rhs = function()
|
|
||||||
utils.format({
|
|
||||||
cmd = {
|
|
||||||
"xmlformat",
|
|
||||||
"-",
|
|
||||||
},
|
|
||||||
output = "stdout",
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
mode = "x",
|
|
||||||
lhs = "<leader>lf",
|
|
||||||
rhs = function()
|
|
||||||
utils.format({
|
|
||||||
cmd = {
|
|
||||||
"xmlformat",
|
|
||||||
"-",
|
|
||||||
},
|
|
||||||
output = "stdout",
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
filetypes = {
|
filetypes = {
|
||||||
"xml",
|
"xml",
|
||||||
@@ -50,7 +22,7 @@ return {
|
|||||||
settings = {
|
settings = {
|
||||||
xml = {
|
xml = {
|
||||||
format = {
|
format = {
|
||||||
enabled = false, -- is able to format document
|
enabled = true, -- is able to format document
|
||||||
splitAttributes = true, -- each attribute is formatted onto new line
|
splitAttributes = true, -- each attribute is formatted onto new line
|
||||||
joinCDATALines = false, -- normalize content inside CDATA
|
joinCDATALines = false, -- normalize content inside CDATA
|
||||||
joinCommentLines = false, -- normalize content inside comments
|
joinCommentLines = false, -- normalize content inside comments
|
||||||
|
|||||||
Reference in New Issue
Block a user