From bfa69a942e19159d3a3e958a5be85cb7cdae19a7 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Sun, 5 Nov 2023 17:09:35 +0100 Subject: fix: rename `astgrep` to `ast-grep` (#178) --- lua/conform/formatters/ast-grep.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/conform/formatters/ast-grep.lua (limited to 'lua/conform/formatters/ast-grep.lua') diff --git a/lua/conform/formatters/ast-grep.lua b/lua/conform/formatters/ast-grep.lua new file mode 100644 index 0000000..7e1a1cc --- /dev/null +++ b/lua/conform/formatters/ast-grep.lua @@ -0,0 +1,11 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://ast-grep.github.io/", + description = "A CLI tool for code structural search, lint and rewriting. Written in Rust", + }, + command = "ast-grep", + args = { "scan", "--update-all", "$FILENAME" }, + stdin = false, + exit_codes = { 0, 5 }, -- 5 = no config file exists +} -- cgit v1.2.3-70-g09d2