jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.11k stars 374 forks source link

Closing parenthesis indented on the same level as opening parenthesis #364

Open brianxk opened 1 year ago

brianxk commented 1 year ago

Language: Rust

let a = 1;
let b = 2;

println!("{} {}", a, b|);

Pressing <CR> at | results in:

println!("{} {}", a, b
         |);

However I would like it to result in:

println!("{} {}", a, b
|);

Is this possible?

Thank you

LunarWatcher commented 1 year ago

This plugin isn't a formatter. You'll have to tweak settings in Vim (realistically via :h cino), or possibly get a better formatter