-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure asterisk alignment in multiline comments to match scaladoc recommendation #129
Conversation
@@ -16,7 +16,11 @@ silent! setlocal formatoptions+=j | |||
|
|||
" Just like c.vim, but additionally doesn't wrap text onto /** line when | |||
" formatting. Doesn't bungle bulleted lists when formatting. | |||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,:// | |||
if exists('g:scala_scaladoc_indent') && g:scala_scaladoc_indent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can clean up the conditionals with:
if get(g:, 'scala_scaladoc_indent', 0)
Does this behave okay if you start the comment on the first line, the Finally, please add the info to the vimdoc in |
It behaves fine with the comment on the first line. |
Thanks @mjp4, sorry about the delay in reviewing! |
Thanks :-) |
* 'master' of https://github.com/derekwyatt/vim-scala: (50 commits) Configure asterisk alignment in multiline comments to match scaladoc recommendation (derekwyatt#129) fix: Handle when there is only one or no "import" (derekwyatt#128) added "tparam" Empty backtick literals are invalid scala syntax (derekwyatt#127) Fix for issue derekwyatt#120 removed @scalaHtml Added some test highlighting remove @scalaHtml from scalaMultilineComment Removed the link to the build status Make comments foldable Update instructions Fixes/cleanup of built-in Tagbar and ctags config More permissive shebang detection, highlight them I really prefer colouring the `${` and `}` syntax: Add scalaTodo syntax: Extract scalaCommentCodeBlockBrackets syntax: Extract scalaSquareBracketsBrackets syntax: Extract scalaInterpolationBrackets + scalaInterpolationBoundary syntax: Fix char escapes Use sbt.scala multi-filetype for sbt files ...
Adds an option
g:scala_scaladoc_indent = 1
to enable comments using the official Scaladoc style.Referenced in #116