diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-15 14:27:29 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2023-09-15 14:30:24 -0700 |
commit | aa38b05575dab57b813ddcd14780f65ff20a6d49 (patch) | |
tree | fbd0cf1bf9719335592ebe7b09336471dd7a9f87 /README.md | |
parent | 9e7d1d6e47a8dcc93fac8d83eea74fef7a6b3322 (diff) |
feat: provide a formatexpr (#55)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |