diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/ocp-indent.lua | 8 |
3 files changed, 10 insertions, 0 deletions
@@ -249,6 +249,7 @@ You can view this list in vim with `:help conform-formatters` - [nixfmt](https://github.com/serokell/nixfmt) - nixfmt is a formatter for Nix code, intended to apply a uniform style. - [nixpkgs_fmt](https://github.com/nix-community/nixpkgs-fmt) - nixpkgs-fmt is a Nix code formatter for nixpkgs. - [ocamlformat](https://github.com/ocaml-ppx/ocamlformat) - Auto-formatter for OCaml code. +- [ocp-indent](https://github.com/ocaml-ppx/ocamlformat) - Automatic indentation of OCaml source files. - [opa_fmt](https://www.openpolicyagent.org/docs/latest/cli/#opa-fmt) - Format Rego files using `opa fmt` command. - [packer_fmt](https://developer.hashicorp.com/packer/docs/commands/fmt) - The packer fmt Packer command is used to format HCL2 configuration files to a canonical format and style. - [pangu](https://github.com/vinta/pangu.py) - Insert whitespace between CJK and half-width characters. diff --git a/doc/conform.txt b/doc/conform.txt index bcf6e31..5ba7852 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -277,6 +277,7 @@ FORMATTERS *conform-formatter style. `nixpkgs_fmt` - nixpkgs-fmt is a Nix code formatter for nixpkgs. `ocamlformat` - Auto-formatter for OCaml code. +`ocp-indent` - Automatic indentation of OCaml source files. `opa_fmt` - Format Rego files using `opa fmt` command. `packer_fmt` - The packer fmt Packer command is used to format HCL2 configuration files to a canonical format and style. diff --git a/lua/conform/formatters/ocp-indent.lua b/lua/conform/formatters/ocp-indent.lua new file mode 100644 index 0000000..ca069b9 --- /dev/null +++ b/lua/conform/formatters/ocp-indent.lua @@ -0,0 +1,8 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/OCamlPro/ocp-indent", + description = "Automatic indentation of OCaml source files.", + }, + command = "ocp-indent", +} |