feat(lua_ls): remove stylua
This commit is contained in:
+1
-34
@@ -37,38 +37,5 @@ return {
|
|||||||
telemetry = { enable = false },
|
telemetry = { enable = false },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
on_attach = function(client, bufnr)
|
on_attach = lsp.on_attach,
|
||||||
lsp.on_attach(client, bufnr)
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", function()
|
|
||||||
util.format({
|
|
||||||
buf = bufnr,
|
|
||||||
cmd = {
|
|
||||||
"stylua",
|
|
||||||
"--stdin-filepath",
|
|
||||||
"%file%",
|
|
||||||
"-",
|
|
||||||
},
|
|
||||||
output = "stdout",
|
|
||||||
auto_indent = true,
|
|
||||||
})
|
|
||||||
end, { buffer = bufnr })
|
|
||||||
|
|
||||||
vim.keymap.set("x", "<leader>lf", function()
|
|
||||||
util.format({
|
|
||||||
buf = bufnr,
|
|
||||||
cmd = {
|
|
||||||
"stylua",
|
|
||||||
"--range-start",
|
|
||||||
"%byte_start%",
|
|
||||||
"--range-end",
|
|
||||||
"%byte_end%",
|
|
||||||
"--stdin-filepath",
|
|
||||||
"%file%",
|
|
||||||
"-",
|
|
||||||
},
|
|
||||||
output = "stdout",
|
|
||||||
})
|
|
||||||
end, { buffer = bufnr })
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,10 +27,7 @@ return {
|
|||||||
"lemminx",
|
"lemminx",
|
||||||
dependencies = { "xmlformatter" },
|
dependencies = { "xmlformatter" },
|
||||||
},
|
},
|
||||||
{
|
"lua-language-server",
|
||||||
"lua-language-server",
|
|
||||||
dependencies = { "stylua" },
|
|
||||||
},
|
|
||||||
"mesonlsp",
|
"mesonlsp",
|
||||||
"oxfmt",
|
"oxfmt",
|
||||||
"oxlint",
|
"oxlint",
|
||||||
|
|||||||
Reference in New Issue
Block a user