diff --git a/lua/plex/plugins/extras/coding/jupyter.lua b/lua/plex/plugins/extras/coding/jupyter.lua new file mode 100644 index 0000000..6b0fe06 --- /dev/null +++ b/lua/plex/plugins/extras/coding/jupyter.lua @@ -0,0 +1,50 @@ +return { + { + "luk400/vim-jukit", + -- FIXME: this does not work + enabled = false, + keys = { + -- See https://github.com/machakann/vim-sandwich/blob/master/macros/sandwich/keymap/surround.vim + { -- open output + "cno", + "call jukit#splits#output_and_history()", + silent = true, + }, + { -- close output + "cnc", + "call jukit#splits#close_output_and_history(1)", + silent = true, + }, + { -- execute current cell + "cn", + "call jukit#send#section(0)", + silent = true, + }, + { -- execute all cells + "cnn", + "call jukit#send#all()", + silent = true, + }, + { -- create cell below + "cnj", + "call jukit#cells#create_below(0)", + silent = true, + }, + { -- create cell above + "cnj", + "call jukit#cells#create_above(0)", + silent = true, + }, + { -- delete cell + "cnx", + "call jukit#cells#delete()", + silent = true, + }, + { -- conversion between notebook and regular python + "cnp", + 'call jukit#convert#notebook_convert("jupyter-notebook")', + silent = true, + }, + }, + }, +}