Skip to content

A minimalist Lua buffer evaluator that executes the current editor buffer

Notifications You must be signed in to change notification settings

FractalCodeRicardo/lua-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Lua Inspector

A minimalist Lua buffer evaluator that executes the current editor buffer

image

Usage

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
}

🎥 Video Sample Usage

See Lua Inspector in action in this demonstration:

Lua Inspector

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

Default Keymaps

The plugin comes with the following default keymaps:

  • eb – Evaluate buffer
  • ec – Close window evaluation

Customize Configuration

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
}

About

A minimalist Lua buffer evaluator that executes the current editor buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages