add config
This commit is contained in:
21
lua/configs/tinymist.lua
Normal file
21
lua/configs/tinymist.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user