From cc29ab41f1053b5aba0886ebb51108ea872e9e09 Mon Sep 17 00:00:00 2001 From: fruit-in <42092501+fruit-in@users.noreply.github.com> Date: Thu, 10 Dec 2020 21:35:16 +0800 Subject: [PATCH] fix elm repl command to utilize the new elm repl rather than elm-repl --- README.md | 2 +- autoload/elm.vim | 8 ++++---- doc/elm-vim.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index decfe43..7d2d738 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ let g:elm_setup_keybindings = 1 * `:ElmTest` calls `elm-test` with the given file. If no file is given it runs it in the root of your project. -* `:ElmRepl` runs `elm-repl`, which will return to vim on exiting. +* `:ElmRepl` runs `elm repl`, which will return to vim on exiting. * `:ElmErrorDetail` shows the detail of the current error in the quickfix window. diff --git a/autoload/elm.vim b/autoload/elm.vim index 5463466..d48dfcb 100644 --- a/autoload/elm.vim +++ b/autoload/elm.vim @@ -258,15 +258,15 @@ endf " Open the elm repl in a subprocess. function! elm#Repl() abort - " check for the elm-repl binary - if elm#util#CheckBin('elm-repl', 'http://elm-lang.org/install') ==# '' + " check for the elm repl binary + if elm#util#CheckBin('elm', 'http://elm-lang.org/install') ==# '' return endif if has('nvim') - term('elm-repl') + term(elm repl) else - !elm-repl + !elm repl endif endf diff --git a/doc/elm-vim.txt b/doc/elm-vim.txt index 44a90ca..ed7b3d3 100644 --- a/doc/elm-vim.txt +++ b/doc/elm-vim.txt @@ -136,7 +136,7 @@ Calls `elm make` with "Main.elm" Calls `elm test` with "Test[filename].elm" - *(elm-repl)* + *(elm repl)* Calls `elm repl` in a subprocess