aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-09-15 14:27:29 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-09-15 14:30:24 -0700
commitaa38b05575dab57b813ddcd14780f65ff20a6d49 (patch)
treefbd0cf1bf9719335592ebe7b09336471dd7a9f87 /README.md
parent9e7d1d6e47a8dcc93fac8d83eea74fef7a6b3322 (diff)
feat: provide a formatexpr (#55)
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2e3c62e..6592bff 100644
--- a/README.md
+++ b/README.md
@@ -150,7 +150,13 @@ require("conform").setup({
See [conform.format()](#formatopts-callback) for more details about the parameters.
-To view configured and available formatters, as well as to see the path to the log file, run `:ConformInfo`
+Conform also provides a formatexpr, same as the LSP client:
+
+```lua
+vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
+```
+
+To view configured and available formatters, as well as to see the log file, run `:ConformInfo`
## Formatters