diff --git a/docs-preview-891/options.html b/docs-preview-891/options.html index 71e14d99..ef96de54 100644 --- a/docs-preview-891/options.html +++ b/docs-preview-891/options.html @@ -10738,15 +10738,23 @@ attribute set
Table that will be passed to conform.format()
. If this
-is set, Conform will run the formatter asynchronously after
-save.
Table or function(luainline) that will be passed to conform.format()
. If this
+is set, Conform will run the formatter asynchronously after save.
Type: -null or (attribute set)
+null or (attribute set) or (luaInline)Default:
{
- lsp_format = "fallback";
+ _type = "lua-inline";
+ expr = ''
+ function()
+ if not vim.g.formatsave or vim.b.disableFormatSave then
+ return
+ else
+ return {["lsp_format"] = "fallback"}
+ end
+ end
+ '';
}
@@ -10766,17 +10774,16 @@ null or (attribute set)
Table that will be passed to conform.format()
. If this
-is set, Conform will run the formatter on save.
Attribute set or Lua function that will be passed to
+conform.format()
. If this is set, Conform will run the formatter
+on save.
Type: -null or (attribute set)
+null or (attribute set) or (luaInline) -Default:
{
- lsp_format = "fallback";
- timeout_ms = 500;
-}
-
+Default:
+enabled by default, and respects vim.lsp.formatOnSave
and
+vim.lsp.mappings.toggleFormatSave
Declared by: