Skip to content
Discussion options

You must be logged in to vote

An indent of only one space is performed and the closing parenthesis is also indented for some reason.

Is there something with this plugin that is sensitive to filetype in this way? This only happens with (. Everything else seems to work as expected.

There is nothing filetype dependent in 'mini.pairs' per se. But the <CR> implementation uses the approach that mimics the most robust approach that also respects filetype: pressing <CR> with 'mini.pairs' is basically the same as pressing <CR><C-o>O without 'mini.pairs'. Here <C-o> temporarily exits into Normal mode and O inserts an empty line above (usually properly indented; at least with default value of 'indentkeys').

I am afraid I can n…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shyun3
Comment options

@echasnovski
Comment options

@shyun3
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.ai
2 participants