1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 02:24:51 +03:00

support commenting

This commit is contained in:
Alex Leferry 2 2016-01-21 18:33:03 +01:00
parent 99b4dc9929
commit c24fa2ea79

View File

@ -1,6 +1,8 @@
# http://ruby-lang.org # http://ruby-lang.org
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# require commenting.kak
# Detection # Detection
# ‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾
@ -97,6 +99,9 @@ hook global WinSetOption filetype=ruby %{
hook window InsertEnd .* -group ruby-hooks _ruby_filter_around_selections hook window InsertEnd .* -group ruby-hooks _ruby_filter_around_selections
hook window InsertChar .* -group ruby-indent _ruby_indent_on_char hook window InsertChar .* -group ruby-indent _ruby_indent_on_char
hook window InsertChar \n -group ruby-indent _ruby_indent_on_new_line hook window InsertChar \n -group ruby-indent _ruby_indent_on_new_line
set window comment_line_chars '#'
set window comment_selection_chars '^begin=:^=end'
} }
hook global WinSetOption filetype=(?!ruby).* %{ hook global WinSetOption filetype=(?!ruby).* %{