feat: add typst support

This commit is contained in:
2024-10-11 10:50:29 +02:00
parent 6a6243fd90
commit 22e70f9725
3 changed files with 21 additions and 0 deletions

View File

@ -60,3 +60,15 @@ vim.api.nvim_create_autocmd("FileType", {
require('spelling').spell_keymap()
end,
})
-- Typst bindings
local typstgroup = vim.api.nvim_create_augroup("typst", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "typst" },
group = typstgroup,
callback = function()
vim.keymap.set('', '<LocalLeader>mp', ':TypstWatch<CR>', { noremap = true, silent = true, desc = "[M]ake [P]review" })
require('spelling').spell_keymap()
end,
})