Comments (7)
My advice is stick to the auto pair plugin you like, it's designed to works like VSCode, but not featured like some of others.
For improvement of <CR>
it's implemented in coc.nvim to make it works with formatOnType feature of LSP, checkout :h coc#on_enter()
from coc-pairs.
@gbrlsnchs
IMO auto-pairs has a few flaws:
- Auto indent didn't work for me sometimes when I was using auto-pairs. So I have to write vimscript by myself to meet demand.
- auto-pairs inserts pairs always, which is a little noisy. coc-pairs just insert the first pair if the next character behind the cursor position is not a whitespace.
Maybe I didn't explain that clearly... Anyway, auto-pairs is a great plugin. π Its fly-mode is fantastic, which, however, I use seldom. So after weighting and balance, I chose coc-pairs.
from coc-pairs.
Thanks, I'll definitely try it out with formatOnType
, I'm loving how powerful Neovim has become thanks to coc.nvim... thanks again, mate!
from coc-pairs.
Thanks, I'll definitely try it out with
formatOnType
, I'm loving how powerful Neovim has become thanks to coc.nvim... thanks again, mate!Did you find a solution? Can you post it?.
See #13 (comment) where I comment about the issue I had and how I solved it.
from coc-pairs.
Thanks, I'll definitely try it out with
formatOnType
, I'm loving how powerful Neovim has become thanks to coc.nvim... thanks again, mate!
Did you find a solution? Can you post it?.
from coc-pairs.
So is it possible to get proper indentation without formatOnType
? Since I'm using prettier in some places, and other formatters in others, and they may not be controlled from coc, it would be nice to get proper indentation without having to resort to cocs formatting.
from coc-pairs.
So is it possible to get proper indentation without formatOnType?
Checkout :h indentexpr
, formatOnType
reformat current line on <CR>
which means not only indentation.
from coc-pairs.
Related Issues (20)
- Backspace didn't work HOT 1
- enable |
- Pair disabled character when there isn't a space before it HOT 1
- lua block in vim filetype adds backslashes HOT 2
- Backspace doesn't delete custom pairs HOT 1
- [Feature Request] Pair colorizer HOT 1
- Disable double quotes in the autocomplete window HOT 3
- Auto closing % character HOT 1
- disable '<' HOT 1
- Moving behind a closing brackets HOT 1
- Can extra line be given for easy function body writing after { pairing? HOT 2
- Some Problem With Indent After Type { HOT 1
- on_enter CHANGE <CR> TO CONFIRM COMELITION HOT 1
- Requieres Neovim >= 0.8.0
- Extra bracket inserted when replaying macros HOT 1
- How to replace brackets?
- Inconsistent <BS> behavior HOT 1
- Not recognizing when on closing tag HOT 1
- Disable in prompt buffer
- δΈθ½εζΆε ι€ε·¦ε³εεΌε·
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-pairs.