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", },