rc filetype: fix double space in trim-indent hooks

This commit is contained in:
Johannes Altmanninger 2022-04-30 11:22:47 +02:00
parent 4c7207991a
commit b929748f8e
24 changed files with 24 additions and 24 deletions

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](cabal) %{
hook global WinSetOption filetype=cabal %[
require-module cabal
hook window ModeChange pop:insert:.* -group cabal-trim-indent cabal-trim-indent
hook window ModeChange pop:insert:.* -group cabal-trim-indent cabal-trim-indent
hook window InsertChar \n -group cabal-insert cabal-insert-on-new-line
hook window InsertChar \n -group cabal-indent cabal-indent-on-new-line
hook window InsertChar \{ -group cabal-indent cabal-indent-on-opening-curly-brace

View File

@ -181,7 +181,7 @@ EOF
define-command -hidden clojure-configure-window %{
set-option window static_words %opt{clojure_static_words}
hook window ModeChange pop:insert:.* -group clojure-trim-indent clojure-trim-indent
hook window ModeChange pop:insert:.* -group clojure-trim-indent clojure-trim-indent
hook window InsertChar \n -group clojure-indent clojure-indent-on-new-line
set-option buffer extra_word_chars '_' . / * ? + - < > ! : "'"

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](coffee) %{
hook global WinSetOption filetype=coffee %{
require-module coffee
hook window ModeChange pop:insert:.* -group coffee-trim-indent coffee-trim-indent
hook window ModeChange pop:insert:.* -group coffee-trim-indent coffee-trim-indent
hook window InsertChar \n -group coffee-insert coffee-insert-on-new-line
hook window InsertChar \n -group coffee-indent coffee-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](css) %{
hook global WinSetOption filetype=css %[
require-module css
hook window ModeChange pop:insert:.* -group css-trim-indent css-trim-indent
hook window ModeChange pop:insert:.* -group css-trim-indent css-trim-indent
hook window InsertChar \n -group css-insert css-insert-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

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](feature|story) %{
hook global WinSetOption filetype=cucumber %{
require-module cucumber
hook window ModeChange pop:insert:.* -group cucumber-trim-indent cucumber-trim-indent
hook window ModeChange pop:insert:.* -group cucumber-trim-indent cucumber-trim-indent
hook window InsertChar \n -group cucumber-insert cucumber-insert-on-new-line
hook window InsertChar \n -group cucumber-indent cucumber-indent-on-new-line

View File

@ -18,7 +18,7 @@ hook global BufCreate .*[.]html[.]l?eex %{
hook global WinSetOption filetype=elixir %{
require-module elixir
hook window ModeChange pop:insert:.* -group elixir-trim-indent elixir-trim-indent
hook window ModeChange pop:insert:.* -group elixir-trim-indent elixir-trim-indent
hook window InsertChar \n -group elixir-indent elixir-indent-on-new-line
hook window InsertChar \n -group elixir-insert elixir-insert-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](elm) %{
hook global WinSetOption filetype=elm %{
require-module elm
hook window ModeChange pop:insert:.* -group elm-trim-indent elm-trim-indent
hook window ModeChange pop:insert:.* -group elm-trim-indent elm-trim-indent
hook window InsertChar \n -group elm-insert elm-insert-on-new-line
hook window InsertChar \n -group elm-indent elm-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](graphqls?) %{
hook global WinSetOption filetype=graphql %{
require-module graphql
hook window ModeChange pop:insert:.* -group graphql-trim-indent graphql-trim-indent
hook window ModeChange pop:insert:.* -group graphql-trim-indent graphql-trim-indent
hook window InsertChar .* -group graphql-indent graphql-indent-on-char
hook window InsertChar \n -group graphql-indent graphql-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](haml) %{
hook global WinSetOption filetype=haml %{
require-module haml
hook window ModeChange pop:insert:.* -group haml-trim-indent haml-trim-indent
hook window ModeChange pop:insert:.* -group haml-trim-indent haml-trim-indent
hook window InsertChar \n -group haml-insert haml-insert-on-new-line
hook window InsertChar \n -group haml-indent haml-indent-on-new-line

View File

@ -15,7 +15,7 @@ hook global WinSetOption filetype=haskell %{
require-module haskell
set-option buffer extra_word_chars '_' "'"
hook window ModeChange pop:insert:.* -group haskell-trim-indent haskell-trim-indent
hook window ModeChange pop:insert:.* -group haskell-trim-indent haskell-trim-indent
hook window InsertChar \n -group haskell-insert haskell-insert-on-new-line
hook window InsertChar \n -group haskell-indent haskell-indent-on-new-line

View File

@ -12,7 +12,7 @@ hook global BufCreate .*[.](janet|jdn) %{
hook global WinSetOption filetype=janet %{
require-module janet
hook window ModeChange pop:insert:.* -group janet-trim-indent janet-trim-indent
hook window ModeChange pop:insert:.* -group janet-trim-indent janet-trim-indent
hook window InsertChar \n -group janet-indent janet-indent-on-new-line
set-option buffer extra_word_chars ! @ $ '%' ^ & * - _ + = : < > . ?

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](json) %{
hook global WinSetOption filetype=json %{
require-module json
hook window ModeChange pop:insert:.* -group json-trim-indent json-trim-indent
hook window ModeChange pop:insert:.* -group json-trim-indent json-trim-indent
hook window InsertChar .* -group json-indent json-indent-on-char
hook window InsertChar \n -group json-indent json-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](lisp) %{
hook global WinSetOption filetype=lisp %{
require-module lisp
hook window ModeChange pop:insert:.* -group lisp-trim-indent lisp-trim-indent
hook window ModeChange pop:insert:.* -group lisp-trim-indent lisp-trim-indent
hook window InsertChar \n -group lisp-indent lisp-indent-on-new-line
set-option buffer extra_word_chars '_' '+' '-' '*' '/' '@' '$' '%' '^' '&' '_' '=' '<' '>' '~' '.'

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](moon) %{
hook global WinSetOption filetype=moon %{
require-module moon
hook window ModeChange pop:insert:.* -group moon-trim-indent moon-trim-indent
hook window ModeChange pop:insert:.* -group moon-trim-indent moon-trim-indent
hook window InsertChar .* -group moon-indent moon-indent-on-char
hook window InsertChar \n -group moon-insert moon-insert-on-new-line
hook window InsertChar \n -group moon-indent moon-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](nix) %{
hook global WinSetOption filetype=nix %{
require-module nix
hook window ModeChange pop:insert:.* -group nix-trim-indent nix-trim-indent
hook window ModeChange pop:insert:.* -group nix-trim-indent nix-trim-indent
hook window InsertChar .* -group nix-indent nix-indent-on-char
hook window InsertChar \n -group nix-insert nix-insert-on-new-line
hook window InsertChar \n -group nix-indent nix-indent-on-new-line

View File

@ -11,7 +11,7 @@ hook global BufCreate .*[.](phpt?) %{
hook global WinSetOption filetype=php %{
require-module php
hook window ModeChange pop:insert:.* -group php-trim-indent php-trim-indent
hook window ModeChange pop:insert:.* -group php-trim-indent php-trim-indent
hook window InsertChar .* -group php-indent php-indent-on-char
hook window InsertChar \n -group php-insert php-insert-on-new-line
hook window InsertChar \n -group php-indent php-indent-on-new-line

View File

@ -18,7 +18,7 @@ hook global BufCreate .*[.](pug|jade) %{
hook global WinSetOption filetype=pug %{
require-module pug
hook window ModeChange pop:insert:.* -group pug-trim-indent pug-trim-indent
hook window ModeChange pop:insert:.* -group pug-trim-indent pug-trim-indent
hook window InsertChar \n -group pug-indent pug-indent-on-new-line
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window pug-.+ }

View File

@ -17,7 +17,7 @@ hook global WinSetOption filetype=purescript %{
require-module purescript
set-option buffer extra_word_chars '_' "'"
hook window ModeChange pop:insert:.* -group purescript-trim-indent purescript-trim-indent
hook window ModeChange pop:insert:.* -group purescript-trim-indent purescript-trim-indent
hook window InsertChar \n -group purescript-insert purescript-insert-on-new-line
hook window InsertChar \n -group purescript-indent purescript-indent-on-new-line

View File

@ -16,7 +16,7 @@ hook global BufCreate .*[.](ragel|rl) %{
hook global WinSetOption filetype=ragel %{
require-module ragel
hook window ModeChange pop:insert:.* -group ragel-trim-indent ragel-trim-indent
hook window ModeChange pop:insert:.* -group ragel-trim-indent ragel-trim-indent
hook window InsertChar .* -group ragel-indent ragel-indent-on-char
hook window InsertChar \n -group ragel-insert ragel-insert-on-new-line
hook window InsertChar \n -group ragel-indent ragel-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](sass) %{
hook global WinSetOption filetype=sass %<
require-module sass
hook window ModeChange pop:insert:.* -group sass-trim-indent sass-trim-indent
hook window ModeChange pop:insert:.* -group sass-trim-indent sass-trim-indent
hook window InsertChar \} -group sass-indent sass-indent-on-closing-brace
hook window InsertChar \n -group sass-insert sass-insert-on-new-line
hook window InsertChar \n -group sass-indent sass-indent-on-new-line

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](scala) %{
hook global WinSetOption filetype=scala %[
require-module scala
hook window ModeChange pop:insert:.* -group scala-trim-indent scala-trim-indent
hook window ModeChange pop:insert:.* -group scala-trim-indent scala-trim-indent
hook window InsertChar \n -group scala-insert scala-insert-on-new-line
hook window InsertChar \n -group scala-indent scala-indent-on-new-line
hook window InsertChar \} -group scala-indent scala-indent-on-closing-curly-brace

View File

@ -17,7 +17,7 @@ hook global WinSetOption filetype=scheme %{
set-option window static_words %opt{scheme_static_words}
set-option buffer extra_word_chars '!' '$' '%' '&' '*' '+' '-' '.' '/' ':' '<' '=' '>' '?' '@' '^' '_' '~'
hook window ModeChange pop:insert:.* -group scheme-trim-indent lisp-trim-indent
hook window ModeChange pop:insert:.* -group scheme-trim-indent lisp-trim-indent
hook window InsertChar \n -group scheme-indent lisp-indent-on-new-line
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window scheme-.+ }

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](scss) %{
hook global WinSetOption filetype=scss %[
require-module scss
hook window ModeChange pop:insert:.* -group scss-trim-indent scss-trim-indent
hook window ModeChange pop:insert:.* -group scss-trim-indent scss-trim-indent
hook window InsertChar \n -group scss-indent scss-insert-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

View File

@ -14,7 +14,7 @@ hook global BufCreate .*[.](twig) %{
hook global WinSetOption filetype=twig %[
require-module twig
hook window ModeChange pop:insert:.* -group twig-trim-indent twig-trim-indent
hook window ModeChange pop:insert:.* -group twig-trim-indent twig-trim-indent
hook window InsertChar \n -group twig-insert twig-insert-on-new-line
hook window InsertChar \n -group twig-indent twig-indent-on-new-line
hook window InsertChar '>' -group twig-indent twig-indent-on-greater-than