-
-
Notifications
You must be signed in to change notification settings - Fork 110
Quick start: Lua (neovim)
-
Install the latest Neovim.
-
Install the Conjure plugin.
-
Install the nvim-treesitter plugin.
-
Run
:TSInstall lua
to install parser for Lua. -
(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.
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 Lua buffer and you’re good to go.
-
By default we’re using debug tools to help locals persistent across evaluation. If you don’t want this behavior, you can set
g:conjure#client#lua#neovim#persistent
tonone
. -
Right now the code evaluation is blocking. Later there might be other clients implemented as a standalone REPL that provide non-blocking evaluation.