Back to Spacevim

SpaceVim lang#idris layer

docs/layers/lang/idris.md

2.4.01.8 KB
Original Source

Available Layers >> lang#idris

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer is for idris development, which is based on wsdjeg/vim-idris.

Install

To use this configuration layer, update your custom configuration file with:

toml
[[layers]]
  name = "lang#idris"

Features

  • repl support
  • code runner
  • show symbol doc
  • show symbol type

Key bindings

Key BindingsDescriptions
SPC l areload current file
SPC l wadd with clause
SPC l tshow type
SPC l pproof search
SPC l oobvious proof search
SPC l ccase split
SPC l frefine item
SPC l lmake lemma
SPC l madd missing
SPC l hshow doc
SPC l eidris eval
SPC l iopen response win

Running current script

To run an idris file, you can press SPC l r to run the current file without losing focus, and the result will be shown in a runner buffer.

Inferior REPL process

Start a idris --nobanner inferior REPL process with SPC l s i.

Send code to inferior process commands:

Key BindingsDescriptions
SPC l s bsend buffer and keep code buffer focused
SPC l s lsend line and keep code buffer focused
SPC l s ssend selection text and keep code buffer focused