Skip to content

Commit

Permalink
feat: Improve Typst workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Nov 12, 2023
1 parent af5a1a2 commit 896e316
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ api.nvim_create_autocmd(
{ "BufRead", "BufNewFile" },
-- { pattern = { "*.txt", "*.md", "*.tex" }, command = [[setlocal spell<cr> setlocal spelllang=en,de<cr>]] }
{
pattern = { "*.txt", "*.md", "*.tex" },
pattern = { "*.txt", "*.md", "*.tex", "*.typ" },
callback = function()
vim.opt.spell = true
vim.opt.spelllang = "en,de"
Expand Down
5 changes: 5 additions & 0 deletions lua/core/plugins/typst.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return {
"kaarmu/typst.vim",
ft = "typst",
lazy = false,
}

0 comments on commit 896e316

Please sign in to comment.