Last active
September 27, 2019 21:22
-
-
Save nathanmargaglio/917c09f18c2663003ab5a9d0b59702f2 to your computer and use it in GitHub Desktop.
NeoVim Config
This file contains 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
" auto-install vim-plug | |
if empty(glob('~/.config/nvim/autoload/plug.vim')) | |
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | |
endif | |
call plug#begin('~/.config/nvim/plugged') | |
" coc.nvim: autocomplete | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" coc extensions | |
let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-yank', 'coc-prettier'] | |
" Typescript | |
Plug 'HerringtonDarkholme/yats.vim' | |
Plug 'mhartington/nvim-typescript', {'do': './install.sh'} | |
" JSX/TSX | |
Plug 'maxmellon/vim-jsx-pretty' | |
" For async completion | |
Plug 'Shougo/deoplete.nvim' | |
" For Denite features | |
Plug 'Shougo/denite.nvim' | |
" NERDTree | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-commentary' | |
call plug#end() | |
colorscheme torte | |
highlight Pmenu ctermfg=0 ctermbg=13 guifg=Cyan guibg=Black | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
" Enable deoplete at startup | |
let g:deoplete#enable_at_startup = 1 | |
" Open Nerd Tree with Ctrl + n | |
let NERDTreeWinPos=1 | |
map <C-n> :NERDTreeToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment