vim9script setlocal formatoptions-=cro # doesn't work on windows for me :( setlocal formatprg=!mix\ format\ - command! -buffer Fmt :up | silent! call system("mix format ", expand("%")) | e import autoload 'popup.vim' def PopupHelp(symbol: string) var cmd = $'elixir -e "require IEx.Helpers; IEx.Helpers.h({symbol})"' popup.ShowAtCursor(systemlist(cmd), (winid) => { setbufvar(winbufnr(winid), "&ft", "markdown") }) enddef nnoremap K PopupHelp(expand("")) xnoremap K yPopupHelp(getreg('"')) nnoremap :botright term ++shell ++close iex -S mix