Skip to content

Commit

Permalink
chore(docs): add conform example
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Jul 24, 2024
1 parent b8b569e commit a56890b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,26 @@ kulala-fmt --check --verbose file1.http file2.rest http/*.http

If run on all files it also warns when it finds both `.env` and `http-client.env.json`
files in the same directory, because that might cause unexpected behavior.

## Use it with conform.nvim

```lua
return {
"stevearc/conform.nvim",
config = function()
require("conform").setup({
formatters = {
kulala = {
command = "kulala-fmt",
args = { "$FILENAME" },
stdin = false,
},
},
formatters_by_ft = {
http = { "kulala" },
},
format_on_save = true,
})
end,
}
```

0 comments on commit a56890b

Please sign in to comment.