@@ -78,11 +78,11 @@ require('quarto').setup{
78
78
},
79
79
},
80
80
codeRunner = {
81
- enabled = false ,
82
- default_method = nil , -- ' molten' or 'slime'
81
+ enabled = true ,
82
+ default_method = " slime " , -- " molten", "slime", "iron" or <function>
83
83
ft_runners = {}, -- filetype to runner, ie. `{ python = "molten" }`.
84
- -- Takes precedence over `default_method`
85
- never_run = { " yaml" }, -- filetypes which are never sent to a code runner
84
+ -- Takes precedence over `default_method`
85
+ never_run = { ' yaml' }, -- filetypes which are never sent to a code runner
86
86
},
87
87
}
88
88
```
@@ -150,22 +150,28 @@ Or, what might ultimately be the cleaner way of documenting language specific is
150
150
## Running Code
151
151
152
152
Quarto-nvim doesn't run code for you, instead, it will interface with existing code running
153
- plugins and tell them what to run. There are currently two such code running plugins that quarto
153
+ plugins and tell them what to run. There are currently three such code running plugins that quarto
154
154
will work with:
155
+
155
156
1 . [ molten-nvim] ( https://github.com/benlubas/molten-nvim ) - a code runner that supports the jupyter
156
157
kernel, renders output below each code cell, and optionally renders images in the terminal.
157
158
2 . [ vim-slime] ( https://github.com/jpalardy/vim-slime ) - a general purpose code runner with support
158
159
for sending code to integrated nvim terminals, tmux panes, and many others.
160
+ 3 . [ iron.nvim] ( https://github.com/Vigemus/iron.nvim ) - general purpose code runner and library for
161
+ within-neovim REPL interaction in splits or floating windows.
159
162
160
- I recommend picking a code runner, setting it up based on its README, and then coming back
163
+ We recommend picking a code runner, setting it up based on its respective README and then coming back
161
164
to this point to learn how Quarto will augment that code runner.
162
165
163
- This plugin enables easily sending code cells to your code runner. There are two different ways to
164
- do this: commands, covered below; and lua functions, covered right here. * By default these functions
165
- will only run cells that are the same language as the current cell.*
166
+ This plugin enables easily sending code cells to your code runner.
167
+ There are two different ways to do this:
168
+ commands, covered below; and lua functions, covered right here.
169
+ _ By default these functions will only run cells that are the same language as the current cell._
166
170
167
- Quarto exposes code running functions through to runner module: ` require('quarto.runner') ` . Those
171
+ Quarto exposes code running functions through to runner module: ` require('quarto.runner') ` .
172
+ Those
168
173
functions are:
174
+
169
175
- ` run_cell() ` - runs the current cell
170
176
- ` run_above(multi_lang) ` - runs all the cells above the current one, ** and** the current one, in order
171
177
- ` run_below(multi_lang) ` - runs all the cells below the current one, ** and** the current one, in order
@@ -178,7 +184,6 @@ called with the value `true`, and will only run cells that match the language of
178
184
otherwise. As a result, just calling ` run_all() ` will run all cells that match the language of the
179
185
current cell.
180
186
181
-
182
187
Here are some example run mappings:
183
188
184
189
``` lua
@@ -212,6 +217,8 @@ QuartoSendLine
212
217
## Recommended Plugins
213
218
214
219
Quarto works great with a number of plugins in the neovim ecosystem.
215
- You can find my personal (and thus up-to-date) configuration for use with Quarto, R and python here:
220
+ You can find my ( @ jmbuhr ) personal (and thus up-to-date) configuration for use with Quarto, R and python here:
216
221
217
222
< https://github.com/jmbuhr/quarto-nvim-kickstarter >
223
+
224
+ But remember, the best config is always your own.
0 commit comments