summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
index a7c26b8..feb3b98 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
@@ -315,8 +315,10 @@ return {
command = "QuartoActivate",
config = function()
require("quarto").setup({
+ debug = false,
+ closePreviewOnExit = true,
lspFeatures = {
- languages = { "r", "python", "rust", "lua" },
+ languages = { "r", "python", "rust" },
chunks = "all",
diagnostics = {
enabled = true,
@@ -348,10 +350,13 @@ return {
vim.keymap.set("n", "<leader>jC", runner.run_above, { silent = true, desc = "Run above cell" })
vim.keymap.set("n", "<leader>jl", runner.run_line, { silent = true, desc = "Run line" })
vim.keymap.set("v", "<leader>jv", runner.run_range, { silent = true, desc = "Run block" })
- vim.keymap.set("n", "<leader>jA", runner.run_all, { silent = true, desc = "Run all" })
+ vim.keymap.set("n", "<leader>ja", runner.run_all, { silent = true, desc = "Run all" })
+ vim.keymap.set("n", "<leader>jA", function()
+ runner.run_all(true)
+ end, { desc = "run all cells of all languages", silent = true })
vim.keymap.set(
"n",
- "<leader>qp",
+ "<leader>jp",
require("quarto").quartoPreview,
{ noremap = true, silent = true, desc = "Preview the quarto document" }
)