-
-
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.
-
Local variables won’t be preserved from evaluation to evalutation. This behavior is the same as Lua’s REPL. To overcome this, just use global variables when interacting with Conjure.
-
Right now the code evaluation is blocking. Later there might be other clients implemented as a standalone REPL that provide non-blocking evaluation.