auto-pairs
coc.nvim
Our great sponsors
auto-pairs | coc.nvim | |
---|---|---|
20 | 320 | |
4,066 | 23,945 | |
- | 0.6% | |
0.0 | 9.0 | |
5 months ago | about 16 hours ago | |
Vim Script | TypeScript | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
auto-pairs
-
How do I implement this effect in Neovim?
This plugin, jiangmiao/auto-pairs. Has a nice feature called Fly Mode where you can escape from any brace or quote with the ending pair no matter where you are while still being in INSERT mode. I'm trying to make this plugin work but having issues. Does anyone know how I can go about implementing this?
-
Favorite vimrc configs for coding?
Having said this, there are some useful language independent extensions: jiangmiao/auto-pairs, tpope/vim-commentary, preservim/tagbar, junegunn/vim-peekaboo
-
Making AutoPairs work with '< >'
You can load a plugin inside of your vimrc using the :runtime command. I'm assuming you're using https://github.com/jiangmiao/auto-pairs -- the initialization code for the plugin should be in plugin/auto-pairs.vim, so you can put this in your vimrc:
- Do vim users tend to enter insert mode and exit insert mode often in order to do simple movements using hjkl while writing? Or do you switch between arrow keys in insert mode and hjkl depending on what mode you're in?
-
oh, happy it ended
- packer instead of plug. it's written in lua and optimises - vim-autopairs instead of auto-pairs. it's written in lua + extremely important: it dosn't put pair of quotes if you're right before the word. it puts only one, so you don't have to manually delete second one -nvim-tree over nerdtree. it's written in lua, isn't this enough?)
- Skip over bracket plugins
-
"Unknown functions" called after deleting a plugin
I've recently switched from Pathogen to VimPlug and started installing new plugins. One of them was auto-pairs, which I promptly uninstalled. However, Vim looks for functions from this plugin when I try to type, preventing me from writing anything. For example, when I try pressing space, Vim complains about E117: Unknown function: AutoPairsSpace.
-
Vim: A Beginner's Guide From A Beginner
auto-pairs - completes your parentheses, brackets and quotes
-
Is it unorthodox to write java purely in Vim/CLI and not use an IDE?
Extra: for extra intellisense, you can use https://github.com/dense-analysis/ale (I don't - I like to stick to vanilla Vim as much as possible), https://github.com/ervandew/supertab (for completions using TAB instead of Ctrl-P), and https://github.com/jiangmiao/auto-pairs (automatic bracket insertion).
-
What is the best way to tab out?
If you're in normal mode, as people have already said, it's A. If you are in insert mode, there are a lot of possibilities with roughly the same cost. Vim has a few insert-mode movement commands, e.g. j goes down a line, but so far as I know there isn't one that helps you. The vim-rsi plugin gives you readline-type commands in insert mode, so if you had that you could do to jump to the end of the line. Another possibility with plugins is to have something like auto-pairs installed in which case just typing ) would do it.
coc.nvim
-
I can't stand using VSCode so I wrote my own (it wasn't easy)
As well as its own plugins Vim/NeoVim can use VSCode's LSPs, DAPs and extensions either directly or via plugins like CoC[1] and Mason[2].
I would be surprised if emacs couldn't do the same.
1. https://github.com/neoclide/coc.nvim
-
Existing non-lua plugins examples
The most famous TypeScript one probably is coc.nvim
-
ready to use neovim for web development (frontend) - beginners
It is flatly the wrong mindset to think of vim as an IDE. vim is a code editor: get in, make change, get out. Consider vim koans, which are a fun little read. You can throw coc.nvim at Neovim, along with a few other bits to give you a Good Enough setup, but vim isn't and will never be an IDE.
-
Using CoC inlay hints
I just did a fresh reinstall of CoC, on a newer version of Neovim. I'm now seeing something I hadn't seen before, which CoC calls "inlay hints". They look like this:
-
C# lsp configuration with neovim CoC
I'm currently on an old setup (using coc and polyglot) and nvim v0.6.1. I'll be updating to a more modern setup within next year, using the native lsp and building nvim more frequently. But that's not today.
-
Does anyone know some good altermatives for these Vim plugins on Emacs?
coc.nvim
-
LazyVim
There are some plugins which have the best documentations I have ever seen, but you need to read it from the Vim.
Example of coc.nvim: https://github.com/neoclide/coc.nvim/blob/master/doc/coc.txt
-
Resources on learning bash scripting
Actually you can with coc.nvim & coc-sh. So long as shellcheck is also installed and in PATH, it'll integrate with coc/vim just fine.
-
how to set up coc.nvim extension on offline machine?
When you install an extension it runs an npm install or yarn, iirc, which is going to be problematic for you being offline. I was going to say you could copy that ~/.config/coc folder directly to the other machine but yeah, Windows, no idea. You see here https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions
-
GCC autocompletion
You can try https://github.com/neoclide/coc.nvim, the pre-requisite is to install nodeJS, then to install all the languages LSP. This works for me for Angular, Rust, JavaScript, Vimscript, etc
What are some alternatives?
lexima.vim - Auto close parentheses and repeat by dot dot dot...
YouCompleteMe - A code-completion engine for Vim
vim-rainbow - Rainbow brackets for Vim
vim-lsp - async language server protocol plugin for vim and neovim
tabout.nvim - tabout plugin for neovim
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim-closer - Closes brackets
nvim-cmp - A completion plugin for neovim coded in Lua.
nvim-colorizer.lua - The fastest Neovim colorizer.
nvim-lspconfig - Quickstart configs for Nvim LSP
nvim-compe - Auto completion Lua plugin for nvim
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.