Replies: 3 comments
-
Found a conflict with the autoComplete option in lsp of https://github.com/yegappan/lsp |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I follow; what exactly is the problem? The option seems to be working as expected if it auto-expands after pressing { - if you want confirmation before expanding, just |
Beta Was this translation helpful? Give feedback.
-
I found that this is not a problem with auto-pairs, but a problem with yegappan/lsp. The plugin has some settings that prevent auto-pairs from working properly. |
Beta Was this translation helpful? Give feedback.
-
I set the option g:AutoPairsAutoLineBreak = ['{'] so that when "{" is pressed it becomes:
(
|
is cursor position)Now there is a problem. For example, if I write an array such as:
int a[] = {1, 2};
It will become:
I don't want it to execute automatically. For example, first enter "{", it will become "{|}", and then press to become:
These are my vimrc options:
Beta Was this translation helpful? Give feedback.
All reactions