ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Racket

by 17451k ALL

Sublime Text plugin for the Racket programming Language

Details

  • 2.3.0
    1.0.0
  • github.​com
  • github.​com
  • 2 months ago
  • 8 hours ago
  • 14 years ago

Installs

  • Total 11K
  • Win 4K
  • Mac 4K
  • Linux 3K
Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21
Windows 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Mac 0 1 3 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0
Linux 0 1 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 2 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Sublime Racket

A Sublime Text 4 plugin for the Racket programming language.

Current features include:

  • syntax definition and highlighting: every Racket form and literal is scoped
  • Rhombus: highlighting for .rhm files, with the build system and REPL
  • build system: run, test, compile and format from command palette
  • symbol indexing: Goto Symbol lists defined functions and structs
  • comment settings: Toggle Comment uses ; and #| |#
  • bracket handling: auto-indent after an open bracket, outdent on close
  • REPL: open a Racket REPL in Terminus and send a file, selection, definition or s-expression to it from command palette
  • documentation lookup: search the Racket docs for the identifier at the cursor from command palette

Racket source highlighted by this package, using the Monokai Pro Light colour scheme

Installation

Via Package Control: Package Control: Install Package, then choose Racket.

Recommended setup

  • Terminus: required by the REPL commands
  • Parinfer: automatic management of parentheses based on code identation
  • LSP with racket-langserver: completion, diagnostics, go to definition and hover docs

Install the server with raco pkg install racket-langserver, then register it in Preferences > Package Settings > LSP > Settings:

{
    "clients": {
      "racket-langserver": {
        "enabled": true,
        "command": ["racket", "--lib", "racket-langserver"],
        "selector": "source.racket, source.rhombus"
      }
    }
  }

racket must be on the PATH Sublime sees.

Features

Detailed information about supported features is in docs/features.md.