A minimalist Lua buffer evaluator that executes the current editor buffer
To use Lua Inspector with Lazy, add the plugin to your plugin list and configure it like this:
return {
"FractalCodeRicardo/lua-inspector",
config = function()
require("lua-inspector").setup()
end
}See Lua Inspector in action in this demonstration:
Click the image above to watch the video on YouTube.
In this video, you’ll see:
- How eval the current buffer
- How to close the window evaluation
The plugin comes with the following default keymaps:
eb– Evaluate bufferec– Close window evaluation
You can customize the plugin by passing your own settings to the setup method.
Here’s an example:
return {
"FractalCodeRicardo/lua-inspector",
config = function()
require("lua-inspector").setup({
eval_keymap = "eb", -- Evaluate buffer keymap
close_keymap = "ec" -- Close window evaluation keymap
})
end
}
