Remove weird php formatting behavior

This commit is contained in:
2023-09-15 22:33:03 +02:00
parent a9b349bf14
commit b69937a6a6
+1 -7
View File
@@ -137,13 +137,7 @@ function P.on_attach(client, bufnr)
{ "n", "x", }, { "n", "x", },
"<leader>lf", "<leader>lf",
function () function ()
if vim.bo.filetype == "php" then vim.lsp.buf.format({ async = false, })
vim.cmd("w")
vim.lsp.buf.format({ async = false, })
vim.cmd("e!")
else
vim.lsp.buf.format({ async = false, })
end
end, end,
opts opts
) )