Created
November 23, 2018 08:23
-
-
Save fazt/5290dcb69cd2f523ea1fb0a4ae905cd0 to your computer and use it in GitHub Desktop.
Neovim setup
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') | |
" General Plugins | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'jiangmiao/auto-pairs' | |
" Themes | |
Plug 'phanviet/vim-monokai-pro' | |
Plug 'szorfein/fantasy.vim' | |
Plug 'dim13/smyck.vim' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'joshdick/onedark.vim' | |
Plug 'phanviet/vim-monokai-pro' | |
" Web | |
Plug 'mustache/vim-mustache-handlebars' | |
Plug 'valloric/MatchTagAlways' | |
Plug 'mattn/emmet-vim' | |
" Javascript | |
Plug 'pangloss/vim-javascript' | |
" Reactjs | |
Plug 'mxw/vim-jsx' | |
" Plug 'maxmellon/vim-jsx-pretty' | |
Plug 'neoclide/vim-jsx-improve' | |
" Initialize plugin system | |
call plug#end() | |
" Line numbers | |
set number | |
" to disable the next comment line | |
autocmd BufNewFile,BufRead * setlocal formatoptions-=cro | |
" indentation | |
filetype plugin indent on | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
" to auto indent | |
"set smartindent | |
"set autoindent | |
" colorscheme fantasy | |
set termguicolors | |
colorscheme monokai_pro | |
" Airline theme | |
let g:airline_theme='base16' | |
" Match Tag Always Settings | |
" to know your type of file type this: | |
" :set ft? | |
let g:mta_filetypes = { | |
\ 'html' : 1, | |
\ 'xhtml' : 1, | |
\ 'xml' : 1, | |
\ 'jinja' : 1, | |
\ 'html.handlebars': 1, | |
\} | |
" General Controls | |
" React emmet | |
"let g:user_emmet_leader_key='<Tab>' | |
let g:user_emmet_settings = { | |
\ 'javascript.jsx' : { | |
\ 'extends' : 'jsx', | |
\ }, | |
\} | |
" vim-jsx | |
let g:jsx_ext_required = 1 | |
" TABS | |
nnoremap <C-Left> :tabprevious<CR> | |
nnoremap <C-Right> :tabnext<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment