summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 02:39:54 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 02:39:54 +0900
commitbc3c4dc00f4f61419217813a889574bfaafe3722 (patch)
tree69883e8300f4c9b9ba835946d97ea71a75deb562 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
parentd29b84c02475e9cbd72c59528ad9950e9f26ad65 (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua23
1 files changed, 12 insertions, 11 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
index 4e41a99..3199bec 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
@@ -267,19 +267,20 @@ return {
end,
},
{
- "goerz/jupytext.vim",
+ "goerz/jupytext.nvim",
+ version = "0.2.0",
lazy = false,
- build = "pip install jupytext",
- dependencies = { "neovim/nvim-lspconfig" },
config = function()
- -- The destination format: 'ipynb', 'markdown' or 'script', or a file extension: 'md', 'Rmd', 'jl', 'py', 'R', ..., 'auto' (script
- -- extension matching the notebook language), or a combination of an extension and a format name, e.g. md:markdown, md:pandoc,
- -- md:myst or py:percent, py:light, py:nomarker, py:hydrogen, py:sphinx. The default format for scripts is the 'light' format,
- -- which uses few cell markers (none when possible). Alternatively, a format compatible with many editors is the 'percent' format,
- -- which uses '# %%' as cell markers. The main formats (markdown, light, percent) preserve notebooks and text documents in a
- -- roundtrip. Use the --test and and --test-strict commands to test the roundtrip on your files. Read more about the available
- -- formats at https://jupytext.readthedocs.io/en/latest/formats.html (default: None)
- vim.g.jupytext_fmt = "markdown"
+ require("jupytext").setup({
+ jupytext = "jupytext",
+ format = "markdown",
+ update = true,
+ filetype = require("jupytext").get_filetype,
+ new_template = require("jupytext").default_new_template(),
+ sync_patterns = { "*.md", "*.py", "*.jl", "*.R", "*.Rmd", "*.qmd" },
+ autosync = true,
+ handle_url_schemes = true,
+ })
end,
keys = {
{ "<A-i>", insert_code_cell, desc = "Insert Code Cell" },