neoclide / Coc Pairs
Basic auto pairs extension of coc.nvim
Stars: ✭ 186
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Coc Pairs
Instant.nvim
collaborative editing in Neovim using built-in capabilities
Stars: ✭ 178 (-4.3%)
Mutual labels: neovim
Alacritty Colorscheme
Change colorscheme of alacritty with ease.
Stars: ✭ 184 (-1.08%)
Mutual labels: neovim
Nvim Config
My custom Neovim configuration with full battery for Python, C++, Markdown, LaTeX and more...
Stars: ✭ 176 (-5.38%)
Mutual labels: neovim
Dotfiles
My [NeoVim + Tmux + Fish Shell] Setup /w install scripts
Stars: ✭ 180 (-3.23%)
Mutual labels: neovim
Vim Netranger
A ranger-like system/cloud storage explorer for Vim, bringing together the best of Vim, ranger, and rclone.
Stars: ✭ 170 (-8.6%)
Mutual labels: neovim
Aerojump.nvim
Aerojump is a fuzzy-match searcher/jumper for Neovim with the goal of quick keyboard navigation
Stars: ✭ 184 (-1.08%)
Mutual labels: neovim
Dotfiles
My dotfiles: Experimental, ongoing configuration files, development environment and scripts for various Unix-like systems, text-based command-line applications and interfaces.
Stars: ✭ 185 (-0.54%)
Mutual labels: neovim
Diagnostic Languageserver
diagnostic language server integrate with linters
Stars: ✭ 186 (+0%)
Mutual labels: neovim
Deoplete Clang
deoplete.nvim source for C/C++/Obj-C/Obj-C++ with clang-python3
Stars: ✭ 186 (+0%)
Mutual labels: neovim
Markdown Preview.nvim
markdown preview plugin for (neo)vim
Stars: ✭ 2,858 (+1436.56%)
Mutual labels: neovim
coc-pairs
Auto pair extension for coc.nvim.
Note you can use other vim auto pairs plugins with coc.nvim, it's a simplified implementation to make auto pairs work like in VSCode.
Note b:coc_paires
have renamed to b:coc_pairs
For enhanced <CR>
experience, checkout :h coc#on_enter()
.
Tips
- You should disable/remove other auto pair plugins for this extension work as expected.
- When you type a paired character which is just the next character, it would just move to the right by one column.
- When the previous content ends with two inserting characters, the characters would just be inserted without inserting the paired character. This makes inserting triple quotes easier.
-
'
only pairs when the character before is not a word character. - for
<
to insert paired>
, the previous character should not be an empty space.
Install
In vim/neovim, run this command:
:CocInstall coc-pairs
Features
- Insert pair characters automatically.
- Buffer local pairs, ex:
autocmd FileType tex let b:coc_pairs = [["$", "$"]]
Options
-
pairs.disableLanguages
, list of language ids to disable this extension, default:[]
. -
pairs.enableCharacters
, list of enabled characters, default:["(", "[", "{", "<", "'", "\"", "`"]
. -
pairs.enableBackspace
, enable imap for backspace to remove paired characters, default:true
, won't work when<bs>
is already mapped.
To disable characters for a specified filetypes, you can use b:coc_pairs_disabled
, ex:
autocmd FileType markdown let b:coc_pairs_disabled = ['`']
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].