Dotfiles V1.5.2
This commit is contained in:
1 parent
1ec21e387a
commit
b5c9d585c1
51 files changed
+1356
-1082
No files matched your search
@@ -22,6 +22,35 @@ return {
|
||||
{ "<leader>il", "<cmd>Lazy<CR>", desc = "Open Lazy Menu" },
|
||||
{ "<leader>im", "<cmd>Mason<CR>", desc = "Open Mason Menu" },
|
||||
{ "<leader>ie", "<cmd>VenvSelect<CR>", desc = "Python Virtual Environment Selector" },
|
||||
{ "<leader>p", group = "typst", icon = "" },
|
||||
{ "<leader>pc", "<cmd>!typst c %<CR>", desc = "Compile current file", icon = "" },
|
||||
{
|
||||
"<leader>pw",
|
||||
function()
|
||||
if _G.typst_job_id then
|
||||
vim.notify("Typst watch is already running!", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
_G.typst_job_id = vim.fn.jobstart({ "typst", "w", vim.fn.expand("%") })
|
||||
vim.notify("Typst watch started in background", vim.log.levels.INFO)
|
||||
end,
|
||||
desc = "Watch current file",
|
||||
icon = "",
|
||||
},
|
||||
{
|
||||
"<leader>ps",
|
||||
function()
|
||||
if _G.typst_job_id then
|
||||
vim.fn.jobstop(_G.typst_job_id)
|
||||
_G.typst_job_id = nil
|
||||
vim.notify("Typst watch stopped", vim.log.levels.INFO)
|
||||
else
|
||||
vim.notify("No Typst job running", vim.log.levels.WARN)
|
||||
end
|
||||
end,
|
||||
desc = "Stop watch current file",
|
||||
icon = "",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in new issue
Block a user