mass update
This commit is contained in:
parent
d5faa08253
commit
c613a6d0e3
21 changed files with 361 additions and 128 deletions
33
lua/plugins/sniprun.lua
Normal file
33
lua/plugins/sniprun.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"michaelb/sniprun",
|
||||
branch = "master",
|
||||
|
||||
build = "sh install.sh",
|
||||
-- do 'sh install.sh 1' if you want to force compile locally
|
||||
-- (instead of fetching a binary from the github release). Requires Rust >= 1.65
|
||||
|
||||
opts = {
|
||||
repl_enable = { "Mathematica_original" },
|
||||
interpreter_options = {
|
||||
Lua_nvim = {
|
||||
use_on_filetypes = { "lua" },
|
||||
},
|
||||
Mathematica_original = {
|
||||
use_javagraphics_if_contains = { "Plot" }, -- a pattern that need <<JavaGraphics
|
||||
},
|
||||
},
|
||||
display = {
|
||||
"VirtualLine",
|
||||
},
|
||||
live_mode_toggle = "enable",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>r", "<Plug>SnipRun", desc = "run snipper", silent = true },
|
||||
{ "<leader>R", "<Plug>SnipLive", desc = "run snipper in REPL mode", silent = true },
|
||||
{ "r", "<Plug>SnipRun", mode = "v", desc = "run snipper", silent = true },
|
||||
},
|
||||
|
||||
lazy = false,
|
||||
|
||||
config = true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue