22 lines
582 B
Lua
22 lines
582 B
Lua
local M = {}
|
|
|
|
M.setup = function()
|
|
local lspconfig = require("lspconfig")
|
|
|
|
lspconfig.tinymist.setup {
|
|
cmd = { vim.fn.stdpath("data") .. "/mason/bin/tinymist" },
|
|
on_attach = require("nvchad.configs.lspconfig").on_attach,
|
|
capabilities = require("nvchad.configs.lspconfig").capabilities,
|
|
filetypes = { "typ", "typst" },
|
|
settings = {
|
|
export = {
|
|
pdf = "onSave", -- or "onType", "never"
|
|
png = "never",
|
|
},
|
|
-- Other tinymist specific settings
|
|
},
|
|
}
|
|
end
|
|
|
|
return M
|