Skip to content

Quick start: Racket (stdio)

Russ Tokuyama edited this page Dec 3, 2024 · 7 revisions

Racket is a general-purpose, multi-paradigm programming language based on the Scheme dialect of Lisp. It is designed to be a platform for programming language design and implementation.

Conjure starts a Racket REPL within Neovim when you first open a Racket file.

You should be able to evaluate files and forms as you would with other Conjure supported languages right away.

Prerequisites

  1. Install the latest Neovim.

  2. Install the vim-racket plugin for racket filetype support.

  3. Install the Conjure plugin.

  4. Install Racket.

  5. Ensure you have XREPL by running ,? in a racket REPL.

  6. To use K to get documentation for the word under the cursor, ,doc <word> is executed in the racket REPL. It will open the page on the Racket documentation website if <word> is found. Test this in a terminal window running racket. If the Racket documentation website doesn’t open in your default browser for ,doc define then you’ll need to check how your computer needs to be set up for this.

Open and edit!

You should now be able to open any .rkt 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-racket-stdio and :ConjureSchool (an interactive tutorial).

Changing the language

If you need to use a different language or command line options with Racket you can override the g:conjure#client#racket#stdio#command option which defaults to "racket".