implemented tinymist
This commit is contained in:
11
init.lua
11
init.lua
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user