Skip to content

natebosch/vim-lsc-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

vim-lsc server configuration for the Dart language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published