Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible conflict with auto pair #123

Open
jerrywang1981 opened this issue Apr 24, 2019 · 3 comments
Open

possible conflict with auto pair #123

jerrywang1981 opened this issue Apr 24, 2019 · 3 comments

Comments

@jerrywang1981
Copy link

jerrywang1981 commented Apr 24, 2019

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.

@luochen1990
Copy link
Owner

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.

@jerrywang1981
Copy link
Author

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.

@zetashift
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants