plugins.flutter-tools.settings
Options provided to the require('flutter-tools').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
closing_tags = {
enabled = false;
highlight = "ErrorMsg";
prefix = ">";
priority = 10;
};
decorations = {
statusline = {
app_version = true;
device = true;
};
};
dev_tools = {
auto_open_browser = true;
autostart = true;
};
lsp = {
color = {
enabled = true;
};
};
widget_guides = {
enabled = true;
};
}
Declared by:
plugins.flutter-tools.settings.flutter_lookup_cmd
The command used to find the directory where flutter is installed.
Type: null or string or raw lua code
Default:
null
Plugin default: lib.nixvim.mkRaw "function get_default_lookup()\n local exepath = fn.exepath(\"flutter\")\n local is_snap_installation = exepath and exepath:match(\"snap\") or false\n return (path.is_linux and is_snap_installation) and \"flutter sdk-path\" or nil\nend\n"
Example:
"dirname $(which flutter)"
Declared by:
plugins.flutter-tools.settings.flutter_path
Absolute path to the flutter
binary.
This takes priority over the flutter_lookup_cmd
.
Type: null or string or raw lua code
Default:
null
Plugin default: null
Example:
"<full/path/if/needed>"
Declared by:
plugins.flutter-tools.settings.fvm
Takes priority over path, uses <workspace>/.fvm/flutter_sdk
if enabled.
Type: null or boolean or raw lua code
Default:
null
Plugin default: false
Declared by:
plugins.flutter-tools.settings.root_patterns
Patterns to find the root of your flutter project.
Type: null or (list of (string or raw lua code)) or raw lua code
Default:
null
Plugin default:
[
".git"
"pubspec.yaml"
]
Declared by: