Skip to content

Instantly share code, notes, and snippets.

@D-Nice
Last active December 10, 2019 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save D-Nice/ff46f77e490300e464bf7b696db5f8d4 to your computer and use it in GitHub Desktop.
Save D-Nice/ff46f77e490300e464bf7b696db5f8d4 to your computer and use it in GitHub Desktop.
just an example vimrc for neovim
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" LSP
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Initialize plugin system
call plug#end()
" Define Coc Extensions Here
let g:coc_global_extensions = ['coc-tsserver',
\'coc-json',
\'coc-html',
\'coc-css' ,
\'coc-python',
\'coc-yaml',
\'coc-highlight',
\'coc-emmet',
\'coc-snippets',
\'coc-lists',
\'coc-git',
\'coc-yank',
\'coc-markdownlint',
\'coc-tabnine',
\'coc-gitignore',
\'coc-pairs',
\'coc-import-cost',
\'coc-github',
\'coc-sh',
\'coc-terminal',
\'coc-docker',
\]
set clipboard^=unnamed,unnamedplus
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
set nopaste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment