natebosch / vim-lsc-dart

vim-lsc server configuration for the Dart language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Vim Script 100.0%