From 2317bdb836a87338da9228af2955b2e23bca3bf3 Mon Sep 17 00:00:00 2001 From: Nelson Earle Date: Sun, 1 Dec 2024 18:02:40 -0600 Subject: [PATCH 1/3] fix(readme): link to `trim_newlines` formatter --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80259626..419d3c85 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,7 @@ You can view this list in vim with `:help conform-formatters` - [terragrunt_hclfmt](https://terragrunt.gruntwork.io/docs/reference/cli-options/#hclfmt) - Format hcl files into a canonical format. - [tlint](https://github.com/tighten/tlint) - Tighten linter for Laravel conventions with support for auto-formatting. - [tofu_fmt](https://opentofu.org/docs/cli/commands/fmt/) - The tofu-fmt command rewrites OpenTofu configuration files to a canonical format and style. -- [trim_newlines](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua) - Trim empty lines at the end of the file. +- [trim_newlines](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_newlines.lua) - Trim empty lines at the end of the file. - [trim_whitespace](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua) - Trim trailing whitespace. - [twig-cs-fixer](https://github.com/VincentLanglet/Twig-CS-Fixer) - Automatically fix Twig Coding Standards issues - [typos](https://github.com/crate-ci/typos) - Source code spell checker From 7cbb0c4d817868f77483b954acb3c4e8b1980689 Mon Sep 17 00:00:00 2001 From: Nelson Earle Date: Tue, 10 Dec 2024 12:59:44 -0600 Subject: [PATCH 2/3] Revert "fix(readme): link to `trim_newlines` formatter" This reverts commit 2317bdb836a87338da9228af2955b2e23bca3bf3. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 419d3c85..80259626 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,7 @@ You can view this list in vim with `:help conform-formatters` - [terragrunt_hclfmt](https://terragrunt.gruntwork.io/docs/reference/cli-options/#hclfmt) - Format hcl files into a canonical format. - [tlint](https://github.com/tighten/tlint) - Tighten linter for Laravel conventions with support for auto-formatting. - [tofu_fmt](https://opentofu.org/docs/cli/commands/fmt/) - The tofu-fmt command rewrites OpenTofu configuration files to a canonical format and style. -- [trim_newlines](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_newlines.lua) - Trim empty lines at the end of the file. +- [trim_newlines](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua) - Trim empty lines at the end of the file. - [trim_whitespace](https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua) - Trim trailing whitespace. - [twig-cs-fixer](https://github.com/VincentLanglet/Twig-CS-Fixer) - Automatically fix Twig Coding Standards issues - [typos](https://github.com/crate-ci/typos) - Source code spell checker From 4f10486ec108758004f72a07026daa74b8c04efc Mon Sep 17 00:00:00 2001 From: Nelson Earle Date: Tue, 10 Dec 2024 13:01:10 -0600 Subject: [PATCH 3/3] fix(trim_newlines): meta url --- lua/conform/formatters/trim_newlines.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/conform/formatters/trim_newlines.lua b/lua/conform/formatters/trim_newlines.lua index de7987ab..fdedfd8a 100644 --- a/lua/conform/formatters/trim_newlines.lua +++ b/lua/conform/formatters/trim_newlines.lua @@ -1,7 +1,7 @@ ---@type conform.FileLuaFormatterConfig return { meta = { - url = "https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_whitespace.lua", + url = "https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/trim_newlines.lua", description = "Trim empty lines at the end of the file.", }, format = function(self, ctx, lines, callback)