luochen1990 / rainbow

Rainbow Parentheses Improved, shorter code, no level limit, smooth and fast, powerful configuration.
Apache License 2.0
1.78k stars 95 forks source link

Compatibilty with Kotlin #149

Closed CaffeineOnIce closed 4 years ago

CaffeineOnIce commented 4 years ago

Hey,

Anyone got any ideas to get Rainbow Parentheses working with Kotlin files? I have tried adding Kotlin and kt to au FileType c,cpp,objc,objcpp,go,rust,python,ruby,javascript,java,vim call rainbow#load() but it was futile. Rainbow Parenthesis can't identify the parentheses nor the braces of sorts.

Thanks, Sam

luochen1990 commented 4 years ago

You don't need au command, you can do what you want via configuration:

let g:rainbow_conf = {
\   'separately': {
\       '*': 0,
\       'c': {},
\       'cpp': {},
\       'kotlin': {}
\   }
\}

If you are not sure about the exact name of your filetype, just edit one file and :echo &ft.