mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 16:15:38 +03:00
Rename 'crystal-new-line-inserted' to 'crystal-indent-on-new-line'
This gives the function clear responsibility, whereas the naming before was unclear
This commit is contained in:
parent
3248f7279c
commit
591cb83da4
@ -17,7 +17,7 @@ hook global WinSetOption filetype=crystal %{
|
|||||||
add-highlighter window/crystal ref crystal
|
add-highlighter window/crystal ref crystal
|
||||||
evaluate-commands set-option window static_words %opt{crystal_keywords} %opt{crystal_attributes} %opt{crystal_objects}
|
evaluate-commands set-option window static_words %opt{crystal_keywords} %opt{crystal_attributes} %opt{crystal_objects}
|
||||||
|
|
||||||
hook window InsertChar '\n' -group crystal-indent crystal-new-line-inserted
|
hook window InsertChar '\n' -group crystal-indent crystal-indent-on-new-line
|
||||||
|
|
||||||
hook -always -once window WinSetOption filetype=.* %{
|
hook -always -once window WinSetOption filetype=.* %{
|
||||||
remove-highlighter window/crystal
|
remove-highlighter window/crystal
|
||||||
@ -175,7 +175,7 @@ evaluate-commands %sh[
|
|||||||
# Commands
|
# Commands
|
||||||
# ‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾
|
||||||
|
|
||||||
define-command -hidden crystal-new-line-inserted %{
|
define-command -hidden crystal-indent-on-new-line %{
|
||||||
# Copy previous line indent
|
# Copy previous line indent
|
||||||
try %{
|
try %{
|
||||||
execute-keys -draft 'K<a-&>'
|
execute-keys -draft 'K<a-&>'
|
||||||
|
Loading…
Reference in New Issue
Block a user