From cad12045c85f0371fb57878f56afc03366e85a7b Mon Sep 17 00:00:00 2001 From: Ubaldo Tiberi Date: Mon, 17 Jun 2024 10:53:44 +0200 Subject: [PATCH] Update READMD --- README.md | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 39c833a..e440f1f 100644 --- a/README.md +++ b/README.md @@ -32,21 +32,6 @@ If you like this plugin you may also want to take a look at Replica is entirely written in _Vim9script_, hence you need at least Vim 9.0 compiled with `python3` support. - - - - - - - - - - - You also need [jupyter console](https://github.com/jupyter/jupyter_console) and the [kernels](https://github.com/jupyter/jupyter/wiki/Jupyter-kernels) of the languages you would like to use.

That is pretty much all. @@ -101,13 +86,13 @@ g:replica_enable_highlight = true g:replica_console_position = "L" g:replica_console_height = &lines g:replica_console_width = floor(&columns/2) -g:replica_kernels = {"python": "python3", - \ "julia": "julia-1.8"} -g:replica_cells_delimiters = { "python": "# %%", - \ "julia": "# %%"} +g:replica_kernels = {python: "python3", + julia: "julia-1.8"} +g:replica_cells_delimiters = { python: "# %%", + julia: "# %%"} g:replica_jupyter_console_options = { - \ "python": "", - \ "julia": ""} + python: "", + julia: ""} ``` ## Adding new languages @@ -213,9 +198,9 @@ following: def ChangeTerminalDir() for ii in term_list() if bufname(ii) == "JULIA" - term_sendkeys(ii, 'cd("' .. getcwd() .. '")' .. "\n") + term_sendkeys(ii, $'cd {getcwd()}\n") else - term_sendkeys(ii, "cd " .. getcwd() .. "\n") + term_sendkeys(ii, $'cd {getcwd()}\n') endif endfor enddef