Last active
September 13, 2018 20:36
-
-
Save rachidify/12e6f7d2ccf3e00f49a2371df05ea53e to your computer and use it in GitHub Desktop.
~/.config/nvim/init.vim
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
call plug#begin('~/.vim/plugged') | |
Plug 'sheerun/vim-polyglot' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'tyrannicaltoucan/vim-quantum' | |
Plug 'scrooloose/nerdtree' | |
Plug 'kien/ctrlp.vim' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'ternjs/tern_for_vim' | |
Plug 'Shougo/deoplete.nvim' | |
Plug 'Shougo/echodoc.vim' | |
Plug 'godlygeek/tabular' | |
Plug 'plasticboy/vim-markdown' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'majutsushi/tagbar' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'pangloss/vim-javascript' | |
Plug 'mattn/emmet-vim' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'prettier/vim-prettier', { | |
\ 'do': 'yarn install', | |
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql'] } | |
call plug#end() | |
syntax on | |
set encoding=utf8 | |
set nu | |
set shiftwidth=2 | |
set expandtab | |
set tabstop=2 | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set background=dark | |
set termguicolors | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
set mouse=a | |
set cursorline | |
set clipboard=unnamedplus | |
filetype plugin on | |
set omnifunc=syntaxcomplete#Complete | |
autocmd InsertEnter * :set number | |
autocmd InsertLeave * :set relativenumber | |
" when running at every change you may want to disable quickfix | |
let g:prettier#quickfix_enabled = 0 | |
let g:prettier#autoformat = 0 | |
autocmd BufWritePre,TextChanged,InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql PrettierAsync | |
colorscheme quantum | |
let g:airline_theme='quantum' | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip | |
let g:ctrlp_custom_ignore = '\v[\/](\.(git|hg|svn)|node_modules)$' | |
let g:javascript_plugin_jsdoc = 1 | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_javascript_checkers = ['eslint'] | |
let g:syntastic_javascript_eslint_exe = 'yarn lint' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment