vim.bo.shiftwidth = 2 vim.bo.tabstop = 2 vim.bo.textwidth = 100 vim.keymap.set("n", "f", function() local tw = vim.bo.textwidth local saved = vim.fn.winsaveview() vim.cmd('silent exec "%!typstyle -c ' .. tostring(tw) .. ' "') vim.fn.winrestview(saved) end, { desc = "ft(typst): Format with typstyle" })