From 27eea56ff8d5569819cc90c7767df9df61b99c7f Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Wed, 11 Mar 2026 15:43:57 -0400 Subject: [PATCH] preview.nvim --- lua/plugins/editor.lua | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index d744012..09fcc23 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -164,14 +164,23 @@ return { }, { 'barrettruth/pending.nvim', - keys = { - { 'p', 'Pendingonly', desc = 'Pending tasks' }, - }, + init = function() + map('n', 'p', 'Pendingonly') + end, }, { 'barrettruth/preview.nvim', init = function() - vim.g.preview = { typst = true, latex = true } + vim.g.preview = { + typst = true, + latex = true, + github = { + output = function(ctx) + return '/tmp/' .. vim.fn.fnamemodify(ctx.file, ':t:r') .. '.html' + end, + }, + mermaid = true, + } end, }, }