Skip to content

stoand/kakoune-idris

Repository files navigation

Idris Highlighting and IDE Actions for Kakoune Editor

asciicast

Install

Ensure NodeJS and Idris 2 are installed.

Clone the repository:

git clone https://github.com/stoand/kakoune-idris ~/.kakoune-idris/

Add to your kakrc:

source ~/.kakoune-idris/idris.kak
map global normal <minus> ':enter-user-mode idris-ide<ret>'

Note: this sets the minus key to be the idris ide mode key. This can be changed by replacing the <minus> above with the desired key.

Usage

See the tests/ dir for an example project

# The plugin expects the "*.ipkg" file to be in the same folder as the "src" dir
# Otherwise there may be a "Module name * does not match file name *" error 
cd myproject
kak myproject.ipkg
mkdir src
kak src/Main.idr

Testing

# Install nodemon to watch for changes
npm i -g nodemon

# Run action tests
nodemon ./ide-mode-test.js

# Run protocol parser tests
nodemon ./parse-protocol-expr-test.js

About

Idris 2 IDE Protocol Integration for Kakoune

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •