mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-04 10:05:06 +02:00
feat(lang): add Typst language support
This commit is contained in:
parent
e80ed322a7
commit
35e545378a
1 changed files with 53 additions and 0 deletions
53
lua/lazyvim/plugins/extras/lang/typst.lua
Normal file
53
lua/lazyvim/plugins/extras/lang/typst.lua
Normal file
|
@ -0,0 +1,53 @@
|
|||
return {
|
||||
recommended = function()
|
||||
return LazyVim.extras.wants({
|
||||
ft = { "typst" },
|
||||
})
|
||||
end,
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = { "typst" },
|
||||
},
|
||||
},
|
||||
|
||||
-- Wait until this package is available in the mason-registry
|
||||
-- {
|
||||
-- "williamboman/mason.nvim",
|
||||
-- opts = {
|
||||
-- ensure_installed = { "typstyle" },
|
||||
-- },
|
||||
-- },
|
||||
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
tinymist = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
typst = { "typstyle" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"chomosuke/typst-preview.nvim",
|
||||
cmd = { "TypstPreview" },
|
||||
build = function()
|
||||
require("typst-preview").update()
|
||||
end,
|
||||
opts = {
|
||||
dependencies_bin = {
|
||||
["typst-preview"] = "tinymist",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue