aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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