Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

feat: buf format via stdin #1021

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions lua/null-ls/builtins/formatting/buf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ return h.make_builtin({
description = "A new way of working with Protocol Buffers.",
},
method = FORMATTING,
to_temp_file = true,
from_temp_file = true,
to_stdin = true,
filetypes = { "proto" },
generator_opts = {
command = "buf",
args = {
"format",
choplin marked this conversation as resolved.
Show resolved Hide resolved
"-w",
"$FILENAME",
},
},
Expand Down