Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 635 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 635 Bytes

Registers the Dart Analysis Server as a language server with vim-lsc

Commands

:DartOrganizeImports. Sort and remove unused imports in the current file.

:DartToggleMethodBodyType. With the cursor on either a return statement (when it is the only statement in a method block) or on the => in a method definition, toggle between the two ways to write the method. If it is an expression body method (=>) convert to a block body ({} and a return) or vice versa. Recommended mapping (in ftplugin/dart.vim):

noremap <buffer> <leader>tr :DartToggleMethodBodyType<cr>