Last active
February 6, 2025 12:32
-
-
Save ph5i/5eee13fd5e0c4ec415897aa278ba795e to your computer and use it in GitHub Desktop.
fast vim-plug setup with vs-code like intellisense using coc.nvim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 install coc | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
#2 install nodejs and npm | |
sudo apt update -y && sudo apt install nodejs npm - | |
#3 open ~/.vimrc and add the following | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
call plug#end() | |
#4 save and close vim | |
#5 open vim and run | |
:PlugInstall | |
#6 install language servers | |
:CocInstall coc-tsserver " JavaScript/TypeScript | |
:CocInstall coc-python " Python | |
:CocInstall coc-clangd " C/C++ | |
:CocInstall coc-json " JSON | |
:CocInstall coc-html " HTML | |
:CocInstall coc-css " CSS | |
#7 list/verify extensions | |
:CocList extensions | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment