From e432206114bb91b475f395a7a103c27906fcabdc Mon Sep 17 00:00:00 2001 From: Vo Quang Chien Date: Wed, 21 May 2025 11:36:05 +0700 Subject: [PATCH] feat(typst): notify when a file is pinned --- lua/lazyvim/plugins/extras/lang/typst.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/typst.lua b/lua/lazyvim/plugins/extras/lang/typst.lua index 8fdbb35c..099a6861 100644 --- a/lua/lazyvim/plugins/extras/lang/typst.lua +++ b/lua/lazyvim/plugins/extras/lang/typst.lua @@ -22,10 +22,12 @@ return { "cP", function() local buf_name = vim.api.nvim_buf_get_name(0) + local file_name = vim.fn.fnamemodify(buf_name, ":t") LazyVim.lsp.execute({ command = "tinymist.pinMain", arguments = { buf_name }, }) + LazyVim.info("Tinymist: Pinned " .. file_name) end, desc = "Pin main file", },