Klafyvel / vim-slime-cells

A plugin on top of vim-slime to enhance its cell feature.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correct delimiter regex for quarto

sho-87 opened this issue · comments

(this is somewhat related to #8)

quarto qmd files use cell delimiters that look something like:

```python

or

```{python}

I'm trying to use a delimiter regex to catch both; I currently have the following but doesnt seem to be working:
vim.g.slime_cell_delimiter = "^```{?%a+}?$"

any thoughts on why that pattern doesnt seem to be matching either? does the plugin use standard regex or lua match patterns?

Hi! the plugin is pure vimscript. The regexp you are looking for is ^```{\?\a\+}\?$ .

perfect, thanks!