mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(extras): lang typst
Adds [`typst`](https://typst.app) support with preview.
This commit is contained in:
parent
3dbace941e
commit
2c3103a04a
1 changed files with 35 additions and 0 deletions
35
lua/lazyvim/plugins/extras/lang/typst.lua
Normal file
35
lua/lazyvim/plugins/extras/lang/typst.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
return {
|
||||
recommended = function()
|
||||
return LazyVim.extras.wants({
|
||||
ft = { "typst" },
|
||||
})
|
||||
end,
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = { ensure_installed = { "typst" } },
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
typst_lsp = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Typst preview
|
||||
{
|
||||
"chomosuke/typst-preview.nvim",
|
||||
ft = "typst",
|
||||
build = function()
|
||||
require("typst-preview").update()
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>cp",
|
||||
ft = "typst",
|
||||
"<cmd>TypstPreviewToggle<cr>",
|
||||
desc = "Typst Preview",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue