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 +++++++++++ lua/conform/formatters/astgrep.lua | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 lua/conform/formatters/ast-grep.lua delete mode 100644 lua/conform/formatters/astgrep.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 +} diff --git a/lua/conform/formatters/astgrep.lua b/lua/conform/formatters/astgrep.lua deleted file mode 100644 index 7e1a1cc..0000000 --- a/lua/conform/formatters/astgrep.lua +++ /dev/null @@ -1,11 +0,0 @@ ----@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