feat(lua_ls): remove stylua
This commit is contained in:
+1
-34
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user