From 6560acee5bf5fce09b6ced1c9a3d3d111459878d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 17 Feb 2025 07:27:34 +0900 Subject: modified core/autocmds.lua, modified plugins/markdown.lua, modified lf/lfrc, modified venvs/default-requirements.txt --- ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | 9 --------- ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua | 11 ++++++++--- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'ar/.config/TheSiahxyz/lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua index 8baae0b..139b0a7 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua @@ -94,15 +94,6 @@ autocmd("FileType", { end, }) --- Start insert mode in terminal -autocmd("TermOpen", { - group = augroup("terminal"), - pattern = "*", - callback = function() - vim.cmd("startinsert") - end, -}) - -- Make it easier to close man-files when opened inline autocmd("FileType", { group = augroup("man_close"), 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", "jC", runner.run_above, { silent = true, desc = "Run above cell" }) vim.keymap.set("n", "jl", runner.run_line, { silent = true, desc = "Run line" }) vim.keymap.set("v", "jv", runner.run_range, { silent = true, desc = "Run block" }) - vim.keymap.set("n", "jA", runner.run_all, { silent = true, desc = "Run all" }) + vim.keymap.set("n", "ja", runner.run_all, { silent = true, desc = "Run all" }) + vim.keymap.set("n", "jA", function() + runner.run_all(true) + end, { desc = "run all cells of all languages", silent = true }) vim.keymap.set( "n", - "qp", + "jp", require("quarto").quartoPreview, { noremap = true, silent = true, desc = "Preview the quarto document" } ) -- cgit v1.2.3