-
-
Notifications
You must be signed in to change notification settings - Fork 114
Quick start: Scheme (stdio)
MIT/GNU Scheme is an implementation of the Scheme programming language, providing an interpreter, compiler, source-code debugger, integrated Emacs-like editor, and a large runtime library. MIT/GNU Scheme is best suited to programming large applications with a rapid development cycle.
Conjure starts an MIT Scheme REPL within Neovim when you first open a Scheme file. You can change which Scheme REPL is started by adjusting the the g:conjure#client#scheme#stdio#command
configuration, it defaults to "mit-scheme"
.
If you change the REPL to a different scheme implementation you’ll probably also need to change the g:conjure#client#scheme#stdio#prompt_pattern
accordingly. It’s a Lua pattern that should match the REPL prompt string that signifies the REPL is ready for more input.
You should be able to evaluate files and forms as you would with other Conjure supported languages right away.
-
Install the latest Neovim.
-
Install the Conjure plugin.
-
Install MIT Scheme.
You should now be able to open any .scm
file and evaluate as you would normally.
If you’re unsure how to evaluate things with Conjure, please refer to :help conjure
, :help conjure-client-scheme-stdio
and :ConjureSchool
(an interactive tutorial).
To use the Scheme client with Chicken scheme you need to set the following command string and prompt pattern:
" In Chicken 5.4+ you may need to remove the `-quiet` arg for it to work with Conjure.
let g:conjure#client#scheme#stdio#command = "csi -quiet -:c"
let g:conjure#client#scheme#stdio#prompt_pattern = "\n-#;%d-> "
let g:conjure#client#scheme#stdio#value_prefix_pattern = v:false