openscad.kak is a plugin for the Kakoune editor. It provides syntax highlighting for OpenSCAD files.
The syntax highlighting was quickly thrown together using snippets from the existing highlighters shipped with kakoune. There probably will be some stuff that does not work correctly right now, if you find anything please create an issue and/or a pull request.
With plug.kak (recommended)
Add this to your kakrc
:
plug "mayjs/openscad.kak"
Restart Kakoune, and execute :plug-install
.
Add the following to your config:
environment.systemPackages = [
(kakoune.override {
plugins = with kakounePlugins; [ openscad-kak ];
});
];
Clone this repo somewhere
git clone https://github.com/mayjs/openscad.kak.git
You can put this repo to your autoload
directory,
or manually source
the openscad.kak
script in your kakrc
file.