Remove weird php formatting behavior
This commit is contained in:
@@ -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.cmd("w")
|
|
||||||
vim.lsp.buf.format({ async = false, })
|
vim.lsp.buf.format({ async = false, })
|
||||||
vim.cmd("e!")
|
|
||||||
else
|
|
||||||
vim.lsp.buf.format({ async = false, })
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
opts
|
opts
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user