Last active
July 24, 2018 12:29
-
-
Save vitor-mariano/28cca8542245622e689774e6ae886828 to your computer and use it in GitHub Desktop.
Neovim configs
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 'scrooloose/nerdtree' | |
Plug 'itchyny/lightline.vim' | |
Plug 'tpope/vim-surround' | |
Plug 'raimondi/delimitmate' | |
Plug 'tpope/vim-endwise' | |
Plug 'wincent/command-t' | |
Plug 'yggdroot/indentline' | |
Plug 'tomtom/tcomment_vim' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'bronson/vim-trailing-whitespace' | |
Plug 'mxw/vim-jsx' | |
Plug 'dracula/vim' | |
Plug 'elixir-lang/vim-elixir' | |
call plug#end() | |
" ---------------------------------------------------------- | |
" Neovim | |
" ---------------------------------------------------------- | |
" Enable mouse integration. | |
set mouse=a | |
" Show line number. | |
set number | |
" Theme. | |
set termguicolors | |
color dracula | |
" Indentation | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
" ---------------------------------------------------------- | |
" NERDTree | |
" ---------------------------------------------------------- | |
" Open NERDTree automatically when vim starts up. | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
" Add shortcut to toggle NERDTree. | |
map <C-n> :NERDTreeToggle<CR> | |
" Show hidden files | |
let NERDTreeShowHidden=1 | |
" Close Vim when the only window left open is the NERDTree. | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" ---------------------------------------------------------- | |
" Indentline | |
" ---------------------------------------------------------- | |
" Disable by default. | |
let g:indentLine_enabled = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment