This is an LSP server that supports tab completion in neovim via Mistral's remote codestral model.
mistral-lsp enables tab complete via the textDocument/inlineCompletion LSP method. At the time of writing this, it is fairly new, so it is only supported on neovim 0.12+.
To build:
bun install # install dependencies (mistral sdk)
bun run build # compile single-binary versionTo use in neovim:
vim.lsp.inline_completion.enable() -- First, enable inline completion on the client
vim.lsp.config("mistral", {
command = "/path/to/mistral-lsp",
root_markers = {".git"},
})
vim.lsp.enable("mistral")This project was created using bun init in bun v1.3.8. Bun is a fast all-in-one JavaScript runtime.