rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

possible conflict with auto pair

Open jerrywang1981 opened this issue 5 years ago • 3 comments

Describe the bug

A clear and concise description of what the bug is.

in auto pair, or other configuration, if I write test(){|}. -- | is the cursor, if I press enter, it will be indented.

test() {
    |
}

however, if I install our plugin, it is

test() {
|
}

To Reproduce

Steps to reproduce the behavior, A piece of code to demo the issue is appreciated.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Are you using some third-party syntax plugins? Add any other context about the problem here.

jerrywang1981 avatar Apr 24 '19 15:04 jerrywang1981

what is the file type (:echo &ft)? what is your indent method? If your indent method depends on the syntax object's name, then maybe you should disable the specific parentheses for this specific filetype.

luochen1990 avatar Apr 25 '19 08:04 luochen1990

you are right, I just found it worked in .vim file, but not in my html / typescript files, I installed other plugins like htm5,coc.nvim,etc. not sure which one blocked 'rainbow' from working or what else I need to configure.

jerrywang1981 avatar Apr 25 '19 23:04 jerrywang1981

I have the same issue in markdown codeblocks for example

def foo() = {
|
}

I'm not sure if it's autopair or because it's markdown file?

zetashift avatar Mar 26 '21 19:03 zetashift