Merge remote-tracking branch 'Delapouite/css'

This commit is contained in:
Maxime Coste 2018-03-22 07:48:02 +11:00
commit 0b57412ed1
3 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ hook global WinSetOption filetype=css %[
hook window ModeChange insert:.* -group css-hooks css-filter-around-selections hook window ModeChange insert:.* -group css-hooks css-filter-around-selections
hook window InsertChar \n -group css-indent css-indent-on-new-line hook window InsertChar \n -group css-indent css-indent-on-new-line
hook window InsertChar \} -group css-indent css-indent-on-closing-curly-brace hook window InsertChar \} -group css-indent css-indent-on-closing-curly-brace
set-option buffer extra_word_chars '-'
] ]
hook -group css-highlight global WinSetOption filetype=(?!css).* %{ remove-highlighter window/css } hook -group css-highlight global WinSetOption filetype=(?!css).* %{ remove-highlighter window/css }

View File

@ -55,6 +55,7 @@ hook -group sass-highlight global WinSetOption filetype=sass %{ add-highlighter
hook global WinSetOption filetype=sass %{ hook global WinSetOption filetype=sass %{
hook window ModeChange insert:.* -group sass-hooks sass-filter-around-selections hook window ModeChange insert:.* -group sass-hooks sass-filter-around-selections
hook window InsertChar \n -group sass-indent sass-indent-on-new-line hook window InsertChar \n -group sass-indent sass-indent-on-new-line
set-option buffer extra_word_chars '-'
} }
hook -group sass-highlight global WinSetOption filetype=(?!sass).* %{ remove-highlighter window/sass } hook -group sass-highlight global WinSetOption filetype=(?!sass).* %{ remove-highlighter window/sass }

View File

@ -38,6 +38,7 @@ hook global WinSetOption filetype=scss %[
hook window ModeChange insert:.* -group scss-hooks scss-filter-around-selections hook window ModeChange insert:.* -group scss-hooks scss-filter-around-selections
hook window InsertChar \n -group scss-indent scss-indent-on-new-line hook window InsertChar \n -group scss-indent scss-indent-on-new-line
hook window InsertChar \} -group scss-indent scss-indent-on-closing-curly-brace hook window InsertChar \} -group scss-indent scss-indent-on-closing-curly-brace
set-option buffer extra_word_chars '-'
] ]
hook -group scss-highlight global WinSetOption filetype=(?!scss).* %{ remove-highlighter window/scss } hook -group scss-highlight global WinSetOption filetype=(?!scss).* %{ remove-highlighter window/scss }