-- bootstrap lazy.nvim, LazyVim and your plugins require("config.lazy") require("typst-preview").setup({ -- This function will be called to determine the root of the typst project get_root = function(path_of_main_file) local root = os.getenv("TYPST_ROOT") if root then return root end return vim.fs.root(0, { ".git" }) or vim.fn.getcwd() end, }) vim.opt.expandtab = false