format json command

This commit is contained in:
Christian Nieves
2025-02-10 22:56:45 -06:00
parent c04a169229
commit 6e33c078e5
10 changed files with 36971 additions and 9 deletions

View File

@ -37,14 +37,14 @@ return {
keys = {
-- stylua: ignore
{ "<leader>fmt", function() require("conform").format({ async = true, lsp_fallback = true }) end, mode = "", desc = "Format buffer", },
},
-- This will provide type hinting with LuaLS
---@module "conform"
---@type conform.setupOpts
opts = {
log_level = vim.log.levels.DEBUG,
formatters_by_ft = {
{ "<leader>fj", ":%!python -m json.tool" },
},
-- This will provide type hinting with LuaLS
---@module "conform"
---@type conform.setupOpts
opts = {
log_level = vim.log.levels.DEBUG,
formatters_by_ft = {
rust = { "rustfmt", lsp_format = "fallback" },
-- Conform will run multiple formatters sequentially
-- go = { "goimports", "gofmt" },