From a563b1b5c280324baf59d0d8c2849bd6331efbab Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Mon, 3 Mar 2025 13:01:17 +0100 Subject: [PATCH] nvim typst --- nvim/init.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nvim/init.lua b/nvim/init.lua index eb93608..03998ab 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -269,6 +269,16 @@ require("lazy").setup({ }) end, }, + { + "chomosuke/typst-preview.nvim", + lazy = false, -- or ft = 'typst' + version = "1.*", + opts = { + port = 10010, + debug = true, + dependencies_bin = { ["tinymist"] = "tinymist" }, + }, + }, { -- live preview of markdown files "iamcco/markdown-preview.nvim", -- requires yarn @@ -887,6 +897,15 @@ require("lazy").setup({ } end, }, + typst = { + function() + local util = require("formatter.util") + return { + exe = "typstyle", + stdin = true, + } + end, + }, typescript = { function() local util = require("formatter.util")