mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add sniprun
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user