Skip to content

Commit

Permalink
read from global conf
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck committed Aug 29, 2024
1 parent e1ac615 commit 8fa0288
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/plugins/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ return {
require("conform").setup({
formatters = {
yamlfmt = {
command = "yamlfmt", -- Ensure yamlfmt is in your PATH
args = {
"-formatter",
"type=basic,include_document_start=true,max_line_length=120,retain_line_breaks_single=true,indentless_arrays=false,pad_line_comments=2",
},
command = "yamlfmt --global_conf", -- Ensure yamlfmt is in your PATH
stdin = true, -- Makes yamlfmt read from stdin
},
},
Expand Down

0 comments on commit 8fa0288

Please sign in to comment.