A tiny neovim plugin for evaluating Lua code on-the-fly. Inspired by the on-the-fly elisp evaluation functionality in emacs.
return {
'KaitlynEthylia/Evalua',
dependencies = 'nvim-treesitter/nvim-treesitter',
init = function() require('Evalua') end,
}
use {
'KaitlynEthylia/Evalua',
requires = {'nvim-treesitter/nvim-treesitter'},
config = function() require('Evalua') end,
}
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'KaitlynEthylia/Evalua'
This plugin has one single command: :Evalua
. This will evaluate the
lua code underneath the cursor, very similar to the C-x C-e function
in emacs. Additionally, the argument silent
may be passed to prevent
Evalua from printing the expression it evaluates and its result.