Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (76 sloc) 2.25 KB
call plug#begin('~/.local/share/nvim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tpope/vim-fugitive'
Plug 'wakatime/vim-wakatime'
Plug 'airblade/vim-gitgutter'
Plug 'sheerun/vim-polyglot'
Plug 'sbdchd/neoformat'
Plug 'reasonml-editor/vim-reason-plus'
Plug 'mhartington/oceanic-next'
Plug 'terryma/vim-multiple-cursors'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
call plug#end()
autocmd vimenter * NERDTree
set laststatus=0
let g:LanguageClient_serverCommands = {
\ 'reason': ['/Users/fariz/.config/nvim/reason/reason-language-server.exe'],
\ }
let g:deoplete#enable_at_startup = 1
let g:ale_sign_error = 'x'
let g:ale_sign_warning = '!'
let g:ale_statusline_format = ['X %d', '? %d', '']
let g:ale_echo_msg_format = '[%linter%]: %s'
if (has("termguicolors"))
set termguicolors
endif
if has('mouse')
set mouse=a
endif
let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|build|dist)|(\.(swp|ico|git|svn))$'
let g:oceanic_next_terminal_bold = 1
let g:oceanic_next_terminal_italic = 1
let g:fzf_layout = { 'right': '~20%' }
set number
set formatoptions+=o
set expandtab
set autoindent
set cindent
set foldcolumn=1
set tabstop=2
set shiftwidth=2
set autochdir
set nojoinspaces
set background=dark
set rtp+=/usr/local/opt/fzf
colorscheme OceanicNext
syntax on
filetype plugin indent on
nnoremap tf :tabfirst<CR>
nnoremap tn :tabnext<CR>
nnoremap tp :tabprev<CR>
nnoremap tl :tablast<CR>
nnoremap gb :Gbrowse<CR>
nnoremap gs :Gstatus<CR>
nnoremap gd :Gdiff<CR>
nnoremap ga :Gwrite<CR>
nnoremap gc :Gcommit<CR>
nnoremap <C-i> :IndentGuidesToggle<CR>
nnoremap <C-t> :tabnew<CR>
nnoremap <C-p> :Files<CR>
nnoremap <C-f> :GFiles<CR>
nnoremap <C-c> :syntax sync fromstart<CR>
nnoremap <C-h> :noh<CR>
nnoremap <C-b> :NERDTreeToggle<CR>
nnoremap <C-a> <esc>ggVG$<CR>
nnoremap <silent> <cr> :call LanguageClient_textDocument_hover()<cr>