Files
nvim/init.lua
2025-12-02 23:40:19 +01:00

14 lines
361 B
Lua

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