plugins.trim.settings
Options provided to the require('trim').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
ft_blocklist = [
"markdown"
];
highlight = true;
patterns = [
''
[[%s/(
)
+/1/]]''
];
trim_on_write = false;
}
Declared by:
plugins.trim.settings.ft_blocklist
Filetypes to exclude.
Plugin default: []
Type: null or (list of (string or raw lua code))
Default:
null
Declared by:
plugins.trim.settings.highlight
Whether to highlight trailing whitespaces.
Plugin default: false
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.trim.settings.highlight_bg
Which color to use for coloring whitespaces.
Plugin default: "#ff0000"
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.trim.settings.highlight_ctermbg
Which color to use for coloring whitespaces (cterm).
Plugin default: "red"
Type: null or string or raw lua code
Default:
null
Declared by:
plugins.trim.settings.patterns
Extra patterns to use for removing white spaces.
Plugin default: []
Type: list of lua code string
Default:
[ ]
Example:
[
''
[[%s/(
)
+/1/]]''
]
Declared by:
plugins.trim.settings.trim_first_line
Whether to trim blank lines at the beginning of the file.
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.trim.settings.trim_last_line
Whether to trim trailing blank lines at the end of the file.
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.trim.settings.trim_on_write
Whether to automatically trim on write.
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by:
plugins.trim.settings.trim_trailing
Whether to trim trailing whitespaces.
Plugin default: true
Type: null or boolean or raw lua code
Default:
null
Declared by: