Skip to content

Commit

Permalink
feat(nvim): add formatting support for yamlfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
heygarrett committed Jul 4, 2024
1 parent 4ff7660 commit d9a9a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/lua/my/plugins/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local formatters_by_ft = {
lua = { "stylua" },
python = { { "black", "yapf" } },
swift = { { "swift_format", "swiftformat" } },
yaml = { { "prettierd", "yamlfmt" } },
}

local format_with_prettierd = {
Expand All @@ -18,7 +19,6 @@ local format_with_prettierd = {
"typescript",
"typescript.tsx",
"typescriptreact",
"yaml",
}

for _, ft in ipairs(format_with_prettierd) do
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/my/plugins/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ return {
"taplo",
"tsserver",
"vimls",
"yamlfmt",
"yamlls",
},
},
Expand Down

0 comments on commit d9a9a0f

Please sign in to comment.