LLeMbas IDE
A complete Neovim editor with LLeMbas built in, installed by one script.
It is stock Neovim, a pinned release, with a ready configuration: file explorer, fuzzy finder,
Treesitter highlighting, language servers, a completion menu, git signs and diffs, a statusline
and a line of open buffers, key hints, a terminal, sessions, and the LLeMbas plugin for chat,
asking about code, rewriting and suggestions as you type. It keeps to itself: its own
NVIM_APPNAME, its own directories. A Neovim configuration of your own in ~/.config/nvim is
never read and never written.
It works fully as an editor on its own. LLeMbas needs two more things: the
LLeMbas CLI, which the installer offers, and a sign-in
to your LLeMbas server (lembas login <address>). No server, model or key is set anywhere in
the IDE.
Install
curl -fsSL https://github.com/LLeMbas/LLeMbas-IDE/releases/latest/download/install.sh | bash
While LLeMbas IDE is in beta there is no stable release for that to find; ask for the betas:
curl -fsSL https://github.com/LLeMbas/LLeMbas-IDE/releases/download/v<version>/install.sh | bash -s -- --channel beta
From a clone of this repository: ide/install.sh --from-checkout.
Then start it with llembas-ide (any arguments go to Neovim: llembas-ide src/main.c).
Linux on x86-64 and arm64. macOS is written for and has not been tried. It needs bash, git,
curl, tar and sha256sum; nothing runs as root. Good to have: a C compiler (cc) for the
Treesitter grammars, rg (ripgrep) for searching in files, a Nerd Font is not needed.
| Option | What it does |
|---|---|
--version X |
install release X instead of the newest |
--channel stable|beta |
which releases "newest" looks at (default stable) |
--prefix DIR |
where the IDE itself goes (default ~/.local/share/llembas-ide) |
--from-checkout |
install from the clone the script sits in |
--nvim-bin PATH |
use a Neovim of your own (0.10 or newer) instead of the pinned release |
--no-cli |
do not offer the LLeMbas CLI |
--no-parsers |
do not compile the Treesitter grammars |
--yes |
ask nothing |
--dry-run |
print every action and do nothing |
What gets installed, and where
| Where | What |
|---|---|
~/.local/share/llembas-ide/nvim/ |
Neovim, the release pinned in neovim.version; its SHA-256 is checked against neovim.sha256 before it is unpacked |
~/.local/share/llembas-ide/site/pack/llembas/ |
the IDE's configuration, the third-party plugins, the compiled Treesitter grammars |
~/.local/share/llembas-ide/lib/ |
the LLeMbas plugin, the installer and the lock files (for update, doctor and uninstall) |
~/.config/llembas-ide/init.lua |
starts the IDE; replaced by an update unless you edited it |
~/.config/llembas-ide/lua/user/init.lua |
yours: created once with comments only, never overwritten |
~/.local/bin/llembas-ide |
the launcher |
~/.local/share/applications/llembas-ide.desktop, ~/.local/share/icons/hicolor/256x256/apps/llembas-ide.png |
the menu entry (Linux) |
Neovim keeps the IDE's history, undo files and sessions in ~/.local/state/llembas-ide/ and its
cache in ~/.cache/llembas-ide/. Nothing else is written. XDG_DATA_HOME, XDG_CONFIG_HOME,
XDG_STATE_HOME and XDG_CACHE_HOME are honoured.
Everything is built in a staging directory and started there once, headless, before it replaces what is installed. A failure at any point leaves the previous installation, or nothing, exactly as it was.
What it is made of
The third-party plugins are five, each fetched with git at exactly the commit in
plugins.lock (the commit hash is the check), and the Treesitter grammars are
compiled from the commits in parsers.lock. Names, sources, licences and pins:
THIRD_PARTY.md. All of it is MIT or Apache-2.0.
There is no plugin manager. The plugins are plain Neovim packages (:help packages) that the
installer places; the editor only loads what is there. So nothing is installed, fetched or
updated when the IDE starts or while it runs, no plugin ever moves off its pinned commit on its
own, and the IDE starts the same with or without a network. Plugins change when LLeMbas IDE
does: a new version of the IDE carries new pins.
- Treesitter. With a C compiler at install, 19 grammars are compiled (Bash, C, CSS, Go, HTML,
JavaScript, JSON, Lua, Markdown, Python, Rust, TOML, TSX, TypeScript, Vimscript, help, YAML and
two helpers). Without one, Neovim's own bundled grammars colour C, Lua, Markdown, Vimscript and
help, and every other language uses Neovim's regular syntax files; install a compiler and run
llembas-ide updateto get them all. - Language servers. Neovim's built-in client starts the servers it finds on your
PATH(:LLeMbasIdeLsplists the ones the IDE knows, which are found, and how each project says to install its server). The IDE never downloads a language server or a formatter: there is no installer for third-party programs in it. - Formatting happens when you ask (
<Space>cf), with a formatter that is installed, or the language server.
Keys
The leader key is <Space>. Press it and wait: the next keys are shown. :LLeMbasIdeKeys (or
<Space>ik) shows this list in the editor.
The completion menu and LLeMbas's suggestions share insert mode and never want the same key:
<Tab> only ever accepts LLeMbas's grey suggestion; the menu is moved in with <C-n>/<C-p>
and taken with <CR> (the entry you moved to) or <C-y> (the first one).
Typing
| Keys | In | What it does |
|---|---|---|
<Tab> |
insert | Accept LLeMbas's suggestion (the grey text) |
<M-Right> |
insert | Accept one word of it |
<M-\> |
insert | Ask for a suggestion now |
<C-n> <C-p> |
insert | Move in the completion menu (also ) |
<CR> |
insert | Take the menu entry you moved to; otherwise a new line |
<C-y> |
insert | Take the menu's first entry |
<C-e> |
insert | Close the menu |
<C-Space> |
insert | Open the menu, or the entry's documentation |
Editing
| Keys | In | What it does |
|---|---|---|
gcc |
normal | Comment the line, on and off (gc with a motion or a selection) |
sa sd sr |
normal | Surround: add (saiw"), delete (sd"), replace (sr"') |
K |
normal | Documentation of the symbol under the cursor |
gd gD gI gy |
normal | Definition, declaration, implementation, type (with a language server) |
Find
| Keys | In | What it does |
|---|---|---|
<Space><Space> |
normal | Find a file |
<Space>/ |
normal | Search in files (needs rg) |
<Space>, |
normal | Switch buffer |
<Space>e |
normal | File explorer at this file |
<Space>E |
normal | File explorer at the working directory |
<Space>ff |
normal | Find a file |
<Space>fg |
normal | Search in files (needs rg) |
<Space>fw |
normal | Search the word under the cursor |
<Space>fb |
normal | Open buffers |
<Space>fr |
normal | Recent files |
<Space>fs |
normal | Symbols in this file |
<Space>fS |
normal | Symbols in the project |
<Space>fR |
normal | References to the symbol under the cursor |
<Space>fd |
normal | Problems in the project |
<Space>fh |
normal | Help pages |
<Space>fk |
normal | All key mappings |
<Space>f. |
normal | The last search again |
Buffers
| Keys | In | What it does |
|---|---|---|
<Space>bd |
normal | Close the buffer, keep the window |
<Space>bn |
normal | Next buffer |
<Space>bp |
normal | Previous buffer |
<S-l> |
normal | Next buffer |
<S-h> |
normal | Previous buffer |
<Space>w |
normal | Save |
<Space>q |
normal | Close the window |
<Esc> |
normal | Clear the search highlight |
Code
| Keys | In | What it does |
|---|---|---|
<Space>ca |
normal | Code action |
<Space>cr |
normal | Rename the symbol |
<Space>cf |
normal, visual | Format the file or the selection |
<Space>cd |
normal | The problem on this line |
<Space>cl |
normal | Language servers: found, missing, how to install |
Problems
| Keys | In | What it does |
|---|---|---|
<Space>xx |
normal | Problems in this file, as a list |
<Space>xw |
normal | Problems in the project, as a list |
<Space>xn |
normal | Next problem |
<Space>xp |
normal | Previous problem |
Git
| Keys | In | What it does |
|---|---|---|
<Space>gs |
normal | Changed files |
<Space>gh |
normal | Changes, hunk by hunk |
<Space>gd |
normal | This file beside its committed version |
<Space>go |
normal | Show changes inline, on and off |
<Space>ga |
normal | Stage the change under the cursor |
<Space>gr |
normal | Undo the change under the cursor |
<Space>gb |
normal | Who changed this line, and the commit |
]g [g |
normal | Next and previous git change (]G [G: last and first) |
LLeMbas
| Keys | In | What it does |
|---|---|---|
<Space>ll |
normal | Chat panel, open and close |
<Space>la |
normal, visual | Ask about the line or the selection (type the question) |
<Space>le |
normal, visual | Have the line or the selection rewritten (type how) |
<Space>lx |
normal, visual | Explain the line or the selection |
<Space>lg |
normal | Generate code at the cursor (type what) |
<Space>lf |
normal | Fix this file's problems |
<Space>lt |
normal | Suggestions as you type, on and off |
<Space>lm |
normal | Change the mode |
<Space>lM |
normal | Change the model |
<Space>ls |
normal | Earlier conversations |
<Space>ln |
normal | New conversation |
<Space>lc |
normal | Commands and skills |
<Space>lS |
normal | Status |
<Space>l. |
normal | Stop the running turn |
<Space>li |
normal | Sign in |
<Space>l? |
normal | The plugin's commands and keys |
ga gr |
normal | Accept or reject LLeMbas's proposed change (gA gR: all; ]h [h: move) |
Session
| Keys | In | What it does |
|---|---|---|
<Space>sr |
normal | Restore this directory's session |
<Space>sw |
normal | Save the session now |
<Space>sd |
normal | Forget this directory's session |
Terminal
| Keys | In | What it does |
|---|---|---|
<Space>tt |
normal | Terminal, open and close |
<C-/> |
normal, terminal | Terminal, open and close |
<C-_> |
normal, terminal | The same, as some terminals send it |
<Esc><Esc> |
terminal | Leave the terminal's typing mode |
Look
| Keys | In | What it does |
|---|---|---|
<Space>ut |
normal | Dark and light theme |
<Space>uw |
normal | Wrap long lines, on and off |
<Space>un |
normal | Relative line numbers, on and off |
IDE
| Keys | In | What it does |
|---|---|---|
<Space>ih |
normal | Start screen |
<Space>ik |
normal | This list of keys |
<Space>id |
normal | Check the installation |
<Space>iu |
normal | Open your own settings file |
<Space>iv |
normal | Versions |
<S-h> and <S-l> replace Neovim's "top and bottom of the window" motions, s belongs to
surround, and <Esc> in normal mode also clears the search highlight. Everything else of
Neovim's is as it was.
Make it yours
~/.config/llembas-ide/lua/user/init.lua (open it with <Space>iu) is loaded last, so what it
sets wins: options, keys, the theme (vim.o.background = "light", or another colourscheme
altogether), the LLeMbas plugin's settings (require("llembas").setup({ … }), see
:help llembas-setup), more language servers (vim.lsp.enable("name")).
Your own plugins go in ~/.config/llembas-ide/pack/user/start/<name>/: clone each there
yourself and set it up in your file. The IDE loads them and never installs or updates them.
The colourscheme llembas has two halves from LLeMbas's two themes: moria (dark, the default)
and shire (light). <Space>ut switches.
Update, check, remove
llembas-ide update # the newest release over this one; your settings are kept
llembas-ide doctor # what is installed, what is missing, what is off without it
llembas-ide --version # the IDE, Neovim and the LLeMbas plugin
llembas-ide uninstall # remove it; --purge also removes your settings
update runs the installed installer: it finds the newest release of the channel you are on (a
beta stays with the betas), downloads it, checks it against the release's SHA256SUMS, and runs
the installer inside it. Running install.sh again does the same. Plugins that did not change
are kept as they are, so an update only fetches what is new.
uninstall removes what the installer placed and the IDE's history and cache. It keeps your
settings unless you say otherwise, and touches nothing else.
Privacy: what leaves the machine, and when
- Installing and updating download Neovim and the plugins from GitHub, and the release from this repository. That is all the network the IDE itself ever uses.
- Running the editor sends nothing. No telemetry, no update check, nothing loaded from a network at start or later. Opening, editing, searching and completing are local.
- LLeMbas features talk to the LLeMbas CLI on your machine, which talks to the LLeMbas server
you signed in to, and to nothing else. That begins when you use one: open the chat, ask,
rewrite, or type with suggestions on. Suggestions as you type are on once the CLI is
installed and signed in, and send the text around the cursor to your server;
<Space>ltturns them off, andcomplete = { auto = false }in your settings keeps them off. - A language server you installed runs locally; what it does on the network is its own.
What a model writes is shown as text and never run. Modelines and per-directory configuration
files (exrc) are off, and a Session.vim lying in a project is not read.
For developers
scripts/test-ide.sh checks all of this: the scripts with shellcheck, a dry run, real installs
into a temporary home (with the pinned Neovim and with the oldest supported one), a headless
start with the checks in tests/headless.lua, updating in place, and
uninstalling. scripts/gen-ide-theme.py writes the colourscheme from the design tokens
(tokens.css); scripts/package-ide.sh writes the release files into dist/.
The oldest Neovim the IDE runs on is 0.10. The one it installs is the pinned release.