Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close option gets ignored when sending one line #366

Open
josecastillolema opened this issue May 3, 2024 · 1 comment
Open

close option gets ignored when sending one line #366

josecastillolema opened this issue May 3, 2024 · 1 comment

Comments

@josecastillolema
Copy link

josecastillolema commented May 3, 2024

Hi,

first of all thanks for the amazing plugin, it is a game changer.

I use OCaml and this is my repl_definition setup:

    repl_definition = {
      ocaml = {
        close = ";;",
        command = {
          "utop",
        }
      },
    },

I have noticed that ;; gets properly appended to multiline segments but unfortunately not to one line segments of code.

  • In the following example the ;; got properly auto appended

    utop # let rec sum = function
      | [] -> 0
      | h::t -> h + sum t
    ;;
    val sum : int list -> int = <fun>
    
  • No auto append of ;; for one liners though:

    utop # let x = 43 + 3
    

Am I missing something in the setup?
Thanks!

@nickeisenberg
Copy link
Contributor

Hey @josecastillolema , as far as I know, there is not a close option of repl_definition. Are you using an old version of iron.nvim by any chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants