Skip to content

Instantly share code, notes, and snippets.

@dhcmrlchtdj
Last active November 14, 2017 20:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhcmrlchtdj/3805e36cb6f9b052a3f60ebd584ac3b2 to your computer and use it in GitHub Desktop.
Save dhcmrlchtdj/3805e36cb6f9b052a3f60ebd584ac3b2 to your computer and use it in GitHub Desktop.
vimrc for ocaml/reason. (deoplete + merlin)
filetype plugin indent off
let g:dein#types#git#clone_depth = 1
set runtimepath+=~/.config/nvim/bundle/repos/github.com/Shougo/dein.vim/
call dein#begin(expand('~/.config/nvim/bundle'))
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
let g:deoplete#enable_at_startup = 1
let g:deoplete#file#enable_buffer_path = 1
let g:deoplete#auto_complete_start_length = 1
let g:deoplete#omni#input_patterns = {}
imap <expr> <TAB> pumvisible() ? '<C-n>' : '<TAB>'
call dein#add('facebook/reason', {'rtp': 'editorSupport/VimReason'})
" call dein#add('ocaml/merlin', {'rtp': 'vim/merlin'})
call dein#local('~/.opam/4.04.0/share/merlin/')
let g:deoplete#omni#input_patterns.ocaml = '[.\w]+'
let g:deoplete#omni#input_patterns.reason = '[.\w]+'
if dein#check_install()
call dein#install()
endif
call dein#end()
filetype plugin indent on
syntax enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment