Skip to content

Commit

Permalink
runtime(dart): add basic dart ftplugin file
Browse files Browse the repository at this point in the history
fixes #14793
closes #14802

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
ribru17 authored and chrisbra committed May 19, 2024
1 parent 36e974f commit 4d7892b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ runtime/ftplugin/cs.vim @nickspoons
runtime/ftplugin/csh.vim @dkearns
runtime/ftplugin/css.vim @dkearns
runtime/ftplugin/cucumber.vim @tpope
runtime/ftplugin/dart.vim @ribru17
runtime/ftplugin/deb822sources.vim @jamessan
runtime/ftplugin/debchangelog.vim @jamessan
runtime/ftplugin/debcontrol.vim @jamessan
Expand Down
15 changes: 15 additions & 0 deletions runtime/ftplugin/dart.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
" Vim filetype plugin
" Language: dart
" Maintainer: Riley Bruins <ribru17@gmail.com>
" Last Change: 2024 May 18

if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1

" Set 'comments' to format dashed lists in comments.
" Also include ///, used for Doxygen.
setl comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// commentstring=//\ %s

let b:undo_ftplugin = 'setl com< cms<'

0 comments on commit 4d7892b

Please sign in to comment.