Merge remote-tracking branch 'alyssais/line_comment_space'

This commit is contained in:
Maxime Coste 2018-05-23 08:18:12 +10:00
commit e1c720000c

View File

@ -21,13 +21,13 @@ hook global BufSetOption filetype=(c|cpp|go|java|javascript|objc|php|rust|sass|s
} }
hook global BufSetOption filetype=(cabal|haskell|moon|idris) %{ hook global BufSetOption filetype=(cabal|haskell|moon|idris) %{
set-option buffer comment_line '-- ' set-option buffer comment_line '--'
set-option buffer comment_block_begin '{-' set-option buffer comment_block_begin '{-'
set-option buffer comment_block_end '-}' set-option buffer comment_block_end '-}'
} }
hook global BufSetOption filetype=clojure %{ hook global BufSetOption filetype=clojure %{
set-option buffer comment_line '#_ ' set-option buffer comment_line '#_'
set-option buffer comment_block_begin '(comment ' set-option buffer comment_block_begin '(comment '
set-option buffer comment_block_end ')' set-option buffer comment_block_end ')'
} }
@ -157,7 +157,7 @@ define-command comment-line -docstring '(un)comment selected lines using line co
execute-keys s<ret>d execute-keys s<ret>d
} catch %{ } catch %{
# Comment the line # Comment the line
set-register '"' "%opt{comment_line}" set-register '"' "%opt{comment_line} "
execute-keys P execute-keys P
} }
} }