mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
22 lines
447 B
Lua
22 lines
447 B
Lua
return {
|
|
{
|
|
"sniprun",
|
|
keys = {
|
|
{ "<leader>r", "<cmd>SnipRun<cr>", desc = "Run code", mode = { "n", "v" } },
|
|
{ "<leader>r", "<Plug>SnipRunOperator", desc = "Run code", mode = { "o" } },
|
|
},
|
|
opts = {
|
|
repl_enable = {},
|
|
|
|
display = { "VirtualLine", },
|
|
live_display = { "VirtualTextOk" },
|
|
show_no_output = { "Classic" },
|
|
|
|
ansi_escape = true,
|
|
},
|
|
after = function(plug)
|
|
require("sniprun").setup(plug.opts)
|
|
end,
|
|
},
|
|
}
|