plugins.conform-nvim.settings.format_after_save
If this is set, Conform will run the formatter asynchronously after save.
Conform will pass the table from format_after_save
to conform.format()
.
This can also be a function that returns the table.
See :help conform.format
for details.
Type: null or lua function string or (attribute set of anything)
Default:
null
Plugin default: { }
Declared by:
plugins.conform-nvim.settings.format_after_save.lsp_format
Option for choosing lsp formatting preference.
never
: never use the LSP for formatting.fallback
: LSP formatting is used when no other formatters are available.prefer
: Use only LSP formatting when available.first
: LSP formatting is used when available and then other formatters.last
: Other formatters are used then LSP formatting when available.
Type: null or one of “never”, “fallback”, “prefer”, “first”, “last” or raw lua code
Default:
null
Plugin default: "never"
plugins.conform-nvim.settings.format_after_save.quiet
Don’t show any notifications for warnings or failures.
Type: null or boolean or raw lua code
Default:
null
Plugin default: false
plugins.conform-nvim.settings.format_after_save.stop_after_first
Only run the first available formatter in the list.
Type: null or boolean or raw lua code
Default:
null
Plugin default: false
plugins.conform-nvim.settings.format_after_save.timeout_ms
Time in milliseconds to block for formatting.
Type: null or unsigned integer, meaning >=0, or raw lua code
Default:
null
Plugin default: 1000