Compare commits
2 Commits
7881ff3f4d
...
3a0e025de9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a0e025de9 | ||
|
|
ffab9d5ec5 |
11
init.lua
11
init.lua
@@ -1,4 +1,15 @@
|
||||
-- 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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
indent_type = "Tabs"
|
||||
indent_width = 4
|
||||
column_width = 120
|
||||
|
||||
|
||||
Reference in New Issue
Block a user