Neovim

The Neovim integration supports .ebi and legacy .sanim files. It uses Neovim 0.11 or later and its built-in LSP client.

Setup

Clone the Shrimply repository and add this to init.lua, using the absolute path to your checkout.

vim.opt.runtimepath:prepend('/path/to/shrimply/crates/ebi/editors/neovim')
vim.lsp.enable('ebi')

Place these lines before any explicit filetype on or filetype plugin indent on command in init.lua.

Install the Shrimply CLI or put the standalone ebi-lsp on PATH. See Language server setup for the standalone build command and live project values. Open an Ebi file and run :checkhealth vim.lsp to see whether the server attached.

To override the command, add the following before vim.lsp.enable('ebi'). Omit --project and its path to let Shrimply discover the project from each saved file.

vim.lsp.config('ebi', {
  cmd = { '/path/to/shrimply', 'ebi', 'lsp', '--project', '/path/to/project.shrimp' },
})

For a standalone executable at a custom location, use cmd = { '/path/to/ebi-lsp' }.

Editing

Ebi buffers use # comments and four-space indentation. The language server provides semantic highlighting and diagnostics. Press K for hover or Ctrl-X Ctrl-O in Insert mode for completion. Use :lua vim.lsp.buf.definition() to jump to a definition and :lua vim.lsp.buf.format() to format the buffer. To show inferred type hints for the current buffer, run :lua vim.lsp.inlay_hint.enable(true, { bufnr = 0 }).