From d9a9a0f24c4e509118aa01b6715f1676fb963e13 Mon Sep 17 00:00:00 2001 From: Garrett Oreilly Date: Tue, 18 Jun 2024 19:33:27 -0400 Subject: [PATCH] feat(nvim): add formatting support for yamlfmt --- nvim/lua/my/plugins/conform.lua | 2 +- nvim/lua/my/plugins/mason.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/lua/my/plugins/conform.lua b/nvim/lua/my/plugins/conform.lua index d6303d6c..ab0e96da 100644 --- a/nvim/lua/my/plugins/conform.lua +++ b/nvim/lua/my/plugins/conform.lua @@ -4,6 +4,7 @@ local formatters_by_ft = { lua = { "stylua" }, python = { { "black", "yapf" } }, swift = { { "swift_format", "swiftformat" } }, + yaml = { { "prettierd", "yamlfmt" } }, } local format_with_prettierd = { @@ -18,7 +19,6 @@ local format_with_prettierd = { "typescript", "typescript.tsx", "typescriptreact", - "yaml", } for _, ft in ipairs(format_with_prettierd) do diff --git a/nvim/lua/my/plugins/mason.lua b/nvim/lua/my/plugins/mason.lua index ddccb5ac..e9cec0c6 100644 --- a/nvim/lua/my/plugins/mason.lua +++ b/nvim/lua/my/plugins/mason.lua @@ -31,6 +31,7 @@ return { "taplo", "tsserver", "vimls", + "yamlfmt", "yamlls", }, },