11*flutter-tools.txt*
2- For Neovim >= 0.8.0 Last change: 2026 April 23
2+ For Neovim >= 0.11 Last change: 2026 May 03
33
44==============================================================================
55Table of Contents *flutter-tools-table-of-contents*
@@ -62,9 +62,8 @@ A minimal native LSP configuration might look like:
6262 " Jump to definition
6363 nnoremap gd <Cmd> lua vim.lsp.buf.definition()<CR>
6464 " Open code actions using the default lsp UI, if you want to change this please see the plugins above
65- nnoremap <leader> ca <Cmd> lua vim.lsp.buf.code_action()<CR>
66- " Open code actions for the selected visual range
67- xnoremap <leader> ca <Cmd> lua vim.lsp.buf.range_code_action()<CR>
65+ nnoremap <leader> ca <Cmd> lua vim.lsp.buf.code_action()<CR>
66+ xnoremap <leader> ca <Cmd> lua vim.lsp.buf.code_action()<CR>
6867<
6968
7069Please note this is not a replacement for reading the documentation, this is
@@ -73,7 +72,7 @@ only to show new users what some basic setup might look like.
7372
7473PREREQUISITES *flutter-tools-flutter-tools.nvim-prerequisites*
7574
76- - neovim 0.8.0 +
75+ - Neovim 0.11 +
7776
7877
7978INSTALLATION *flutter-tools-flutter-tools.nvim-installation*
@@ -193,14 +192,21 @@ APP VERSION
193192- `FlutterDetach` - Ends a running session locally but keeps the process running on the device.
194193- `FlutterOutlineToggle` - Toggle the outline window showing the widget tree for the given file.
195194- `FlutterOutlineOpen` - Opens an outline window showing the widget tree for the given file.
195+ - `FlutterVisualDebug` - Toggle Flutter visual debugging.
196+ - `FlutterChangeTargetPlatform` - Cycle the target platform override for the running app.
197+ - `FlutterToggleBrightness` - Toggle the app brightness override.
196198- `FlutterDevTools` - Starts a Dart Dev Tools server.
197199- `FlutterDevToolsActivate` - Activates a Dart Dev Tools server.
200+ - `FlutterOpenDevTools` - Open the currently connected DevTools page.
201+ - `FlutterInspectWidget` - Toggle widget inspection for the running app.
198202- `FlutterCopyProfilerUrl` - Copies the profiler url to your system clipboard (+ register). Note that commands `FlutterRun` and
199203 `FlutterDevTools` must be executed first.
204+ - `FlutterPubGet` - Run `flutter pub get` in the project root.
205+ - `FlutterPubUpgrade [args] ` - Run `flutter pub upgrade` with optional extra arguments.
200206- `FlutterLspRestart` - This command restarts the dart language server, and is intended for situations where it begins to work incorrectly.
201207- `FlutterSuper` - Go to super class, method using custom LSP method `dart/textDocument/ super` .
202208- `FlutterReanalyze` - Forces LSP server reanalyze using custom LSP method `dart/reanalyze` .
203- - `FlutterRename` - Renames and updates imports if `lsp.settings.renameFilesWithClasses == "always"`
209+ - `FlutterRename` - Rename a symbol and update imports if `lsp.settings.renameFilesWithClasses == "always"`.
204210- `FlutterLogClear` - Clears the log buffer.
205211- `FlutterLogToggle` - Toggles the log buffer.
206212
@@ -306,14 +312,6 @@ both are set.
306312 auto_open = false -- if true this will open the outline automatically when it is first populated
307313 },
308314 lsp = {
309- color = { -- show the derived colours for dart variables
310- enabled = false, -- whether or not to highlight color variables at all, only supported on flutter >= 2.10
311- background = false, -- highlight the background
312- background_color = nil, -- required, when background is transparent (i.e. background_color = { r = 19, g = 17, b = 24},)
313- foreground = false, -- highlight the foreground
314- virtual_text = true, -- show the highlight using virtual text
315- virtual_text_str = "■", -- the virtual text character to highlight
316- },
317315 on_attach = my_custom_on_attach,
318316 capabilities = my_custom_capabilities, -- e.g. lsp_status capabilities
319317 --- OR you can specify a function to deactivate or change or control how the config is created
@@ -339,6 +337,32 @@ You can override any options available in the `lspconfig` setup, this call
339337essentially wraps it and adds some extra `flutter` specific handlers and
340338utilisation options.
341339
340+
341+ DOCUMENT COLORS ~
342+
343+ Plugin-managed `lsp .color ` rendering is deprecated and will be removed when
344+ flutter-tools.nvim requires Neovim `0.12 + ` .
345+
346+ On Neovim `0.12 + ` , use the built-in LSP document color support instead:
347+
348+ >lua
349+ vim.api.nvim_create_autocmd("LspAttach", {
350+ callback = function(ev)
351+ vim.lsp.document_color.enable(true, { bufnr = ev.buf })
352+ end,
353+ })
354+ <
355+
356+ If you want to opt out of Neovim's built-in document colors for some buffers:
357+
358+ >lua
359+ vim.api.nvim_create_autocmd("LspAttach", {
360+ callback = function(ev)
361+ vim.lsp.document_color.enable(false, { bufnr = ev.buf })
362+ end,
363+ })
364+ <
365+
342366**NOTE:** By default this plugin excludes analysis of the packages in the
343367flutter SDK. If for example you jump to the definition of `StatelessWidget` ,
344368the lsp will not try and index the 100s (maybe 1000s) of files in that
0 commit comments