From 3074347e33fa8ef80caf5b75e6f74ffd90902ada Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Mon, 12 Aug 2024 15:05:47 -0700 Subject: [PATCH] :wrench: More formatters for nvim --- .config/nvim/after/plugin/conform.lua | 3 +++ updates.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.config/nvim/after/plugin/conform.lua b/.config/nvim/after/plugin/conform.lua index 54d6dd32..4b3339af 100644 --- a/.config/nvim/after/plugin/conform.lua +++ b/.config/nvim/after/plugin/conform.lua @@ -8,6 +8,9 @@ require("conform").setup({ html = { "prettierd", "prettier", stop_after_first = true }, sql = { "sql_formatter" }, sh = { "shfmt" }, + json = { "jq" }, + toml = { "taplo" }, + yaml = { "yq" }, }, format_on_save = { -- These options will be passed to conform.format() diff --git a/updates.txt b/updates.txt index aa7a5746..b7c7bbc9 100755 --- a/updates.txt +++ b/updates.txt @@ -566,3 +566,5 @@ Install sql-formatter paru sql-formatter Install black (python formatter) doas pacman -S python-black +Install taplo (TOML formatter) +doas pacman -S taplo