I shared my exprience in this post, https://hashnode.com/post/a-little-puzzle-that-i-faced-with-reasonml-dev-with-vim-ck8loslnf00zi79s1edqj2ont.
Also, I’m curious how everyone is setting up their Reason dev env with Vim.
Sharing a little experience setting up Reason dev env with Vim
ryuheechul
#1
roddy
#2
reason-language-server is very useful. I have this in my vimrc:
let g:LanguageClient_serverCommands = {
\ 'reason': ['~/.vim/rls-linux/reason-language-server']
\ }
function LC_maps()
if has_key(g:LanguageClient_serverCommands, &filetype)
nnoremap <buffer> <silent> <leader>t :call LanguageClient#textDocument_hover()<cr>
endif
endfunction
which makes <leader>t
show the type of the thing under the cursor.
dylanirlbeck
#3
I personally use Neovim + coc-nvim + ocaml-lsp and it’s worked great so far. You can check out my init.vim and my coc-settings.json if you’re interested! I’m also happy to answer questions and hear feedback, since I have no idea if this is the best approach (I just personally had a lot of problems with RLS, and ocaml-lsp works more consistently).