Skip to content

Commit

Permalink
feat: add jupytext
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Apr 19, 2024
1 parent 5f5bb68 commit d31943c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ return {
},
},

{ -- directly open ipynb files as quarto docuements
-- and convert back behind the scenes
-- needs:
-- pip install jupytext
'GCBallesteros/jupytext.nvim',
opts = {
custom_language_formatting = {
python = {
extension = 'qmd',
style = 'quarto',
force_ft = 'quarto', -- you can set whatever filetype you want here
},
r = {
extension = 'qmd',
style = 'quarto',
force_ft = 'quarto', -- you can set whatever filetype you want here
},
},
},
},

{ -- send code from python/r/qmd documets to a terminal or REPL
-- like ipython, R, bash
'jpalardy/vim-slime',
Expand Down

0 comments on commit d31943c

Please sign in to comment.