Skip to content

Instantly share code, notes, and snippets.

@geraldodev
Last active April 19, 2018 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraldodev/346d28736d03ff2957f27b4658df5f5d to your computer and use it in GitHub Desktop.
Save geraldodev/346d28736d03ff2957f27b4658df5f5d to your computer and use it in GitHub Desktop.
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
Plug 'reasonml-editor/vim-reason-plus'
let g:LanguageClient_serverCommands = {
\ 'reason': ['ocaml-language-server', '--stdio'],
\ 'ocaml': ['ocaml-language-server', '--stdio'],
\ }
" Automatically start language servers.
let g:LanguageClient_autoStart = 1
" Reason
autocmd FileType reason nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
autocmd FileType reason nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
autocmd FileType reason nnoremap <silent> <F4> :call LanguageClient_textDocument_rename()<CR>
autocmd FileType reason nnoremap <silent> <leader>f :call LanguageClient_textDocument_formatting()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment