This commit is contained in:
2025-06-02 11:50:42 +03:00
parent 43eabcc17e
commit 054f906de3
6 changed files with 16 additions and 9 deletions

View File

@ -3,12 +3,11 @@ vim.lsp.config('tinymist', {
settings = {
formatterPrintWidth = 100, -- can't stand 120
formatterMode = "typstyle", -- or typstfmt
-- exportPdf = "onDocumentHasTitle", -- default: never
semanticTokens = "enable"
exportPdf = "onSave", -- "onDocumentHasTitle", -- default: never
semanticTokens = "enable",
},
single_file_support = true,
-- root_dir = function(_, bufnr)
-- return vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h"
-- end,
root_dir = function(bufnr, callback)
callback(vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h")
end,
})