Skip to content

Quick start: Rust (evcxr)

Ross Baquir edited this page Apr 15, 2023 · 2 revisions

Prerequisites

  1. Install the latest Neovim.

  2. Install the Conjure plugin.

  3. Install evcxr_repl.

  4. Install the nvim-treesitter plugin.

  5. Run :TSInstall rust to install parser for Rust.

  6. (Optional) Install the nvim-treesitter-textobjects plugin. With this plugin, you can use shortcut keys to select, e.g. a function, and the send it to Conjure for evaluation.

Configuration

You just need to configure Conjure to enable tree-sitter support:

vim.g['conjure#extract#tree_sitter#enabled'] = true

After that, update your config, open a Rust buffer and you’re good to go.