implemented tinymist

This commit is contained in:
z1glr
2025-12-02 23:40:19 +01:00
parent 906eeed8b4
commit ffab9d5ec5
3 changed files with 18 additions and 7 deletions

View File

@@ -1,2 +1,13 @@
-- 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,
})