1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Add OCaml completion support to Vim

This commit is contained in:
Joe Groocock 2016-10-04 09:50:16 +01:00
parent 49a0e554ac
commit a45e03c0b2
2 changed files with 8 additions and 1 deletions

6
.vimrc
View File

@ -1,5 +1,4 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required
syntax enable syntax enable
set tabstop=4 set tabstop=4
@ -39,6 +38,11 @@ Plugin 'jiangmiao/auto-pairs'
call vundle#end() call vundle#end()
let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
execute "set rtp+=" . g:opamshare . "/merlin/vim"
execute "set rtp+=" . g:opamshare . "/vim/syntax/ocp-indent.vim"
let g:syntastic_ocaml_checkers = ['merlin']
" YouCompleteMe python fix " YouCompleteMe python fix
let g:ycm_server_python_interpreter = '/usr/bin/python3' let g:ycm_server_python_interpreter = '/usr/bin/python3'

3
.zshrc
View File

@ -84,3 +84,6 @@ ZSH_HIGHLIGHT_STYLES[assign]='none'
ZSH_HIGHLIGHT_STYLES[redirection]='none' ZSH_HIGHLIGHT_STYLES[redirection]='none'
source $DOTFILES/aliases source $DOTFILES/aliases
# OPAM configuration
. /home/frebib/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true