From ec6a686f43628ae9ff23df6af9a11474c1a719f2 Mon Sep 17 00:00:00 2001 From: Patrick Perkins Date: Fri, 28 Mar 2025 12:33:02 -0400 Subject: [PATCH 1/5] add neovim conform format --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ee062df..dde2337 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,17 @@ let g:ale_fixers = { \} ``` +### With Neovim [conform.nvim](https://github.com/stevearc/conform.nvim) + +Specify `erb_format` as a formatter for the `eruby` filetype: +```lua +opts = { + formatters_by_ft = { + eruby = { "erb_format" }, + }, +}, +``` + ### With [Zed](https://zed.dev/) editor With the gem installed, configure `settings.json` to use the formatter as an external command From a5110ff1a292a2e370ffba1b5fcc7a4ef433ad5b Mon Sep 17 00:00:00 2001 From: Patrick Perkins Date: Fri, 28 Mar 2025 12:34:52 -0400 Subject: [PATCH 2/5] update formatting for lua code --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dde2337..573c83f 100644 --- a/README.md +++ b/README.md @@ -124,9 +124,9 @@ let g:ale_fixers = { Specify `erb_format` as a formatter for the `eruby` filetype: ```lua opts = { - formatters_by_ft = { - eruby = { "erb_format" }, - }, + formatters_by_ft = { + eruby = { "erb_format" }, + }, }, ``` From 5be281c20970d72b30c98bba340bdcd105ff3b8f Mon Sep 17 00:00:00 2001 From: Patrick Perkins Date: Fri, 28 Mar 2025 12:38:32 -0400 Subject: [PATCH 3/5] add conform config --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 573c83f..a226d0c 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ let g:ale_fixers = { ### With Neovim [conform.nvim](https://github.com/stevearc/conform.nvim) -Specify `erb_format` as a formatter for the `eruby` filetype: +Specify `erb_format` as a formatter for the `eruby` filetype in the Conform config: ```lua opts = { formatters_by_ft = { From 8708a2717f6443f58992c09c1e52ef7a7ce66b7f Mon Sep 17 00:00:00 2001 From: Patrick Perkins Date: Fri, 28 Mar 2025 12:43:20 -0400 Subject: [PATCH 4/5] add link to conform config --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a226d0c..ffb7303 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ let g:ale_fixers = { ### With Neovim [conform.nvim](https://github.com/stevearc/conform.nvim) -Specify `erb_format` as a formatter for the `eruby` filetype in the Conform config: +Specify `erb_format` as a formatter for the `eruby` filetype in the [Conform config](https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup): ```lua opts = { formatters_by_ft = { From 413dca8453eb4900221d27e9bb02f77e59a7009a Mon Sep 17 00:00:00 2001 From: Patrick Perkins Date: Fri, 28 Mar 2025 12:44:42 -0400 Subject: [PATCH 5/5] remove lazy specific opts table --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ffb7303..ba76fda 100644 --- a/README.md +++ b/README.md @@ -123,10 +123,8 @@ let g:ale_fixers = { Specify `erb_format` as a formatter for the `eruby` filetype in the [Conform config](https://github.com/stevearc/conform.nvim?tab=readme-ov-file#setup): ```lua -opts = { - formatters_by_ft = { - eruby = { "erb_format" }, - }, +formatters_by_ft = { + eruby = { "erb_format" }, }, ```