feat(lua_ls): remove stylua

This commit is contained in:
2026-04-07 10:37:56 +02:00
parent e4044e5df2
commit 0f697cb3b3
2 changed files with 2 additions and 38 deletions
+1 -34
View File
@@ -37,38 +37,5 @@ return {
telemetry = { enable = false },
},
},
on_attach = function(client, bufnr)
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,
on_attach = lsp.on_attach,
}
-3
View File
@@ -27,10 +27,7 @@ return {
"lemminx",
dependencies = { "xmlformatter" },
},
{
"lua-language-server",
dependencies = { "stylua" },
},
"mesonlsp",
"oxfmt",
"oxlint",