From 3dc638c827e4d6ef98f8a6710657ab40219ad525 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 16 Feb 2026 23:54:55 -0500 Subject: [PATCH] feat(nvim): preview on save with tinymist --- config/nvim/lua/lsp/tinymist.lua | 2 +- config/nvim/lua/plugins/lsp.lua | 14 -------------- home/modules/editor.nix | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/config/nvim/lua/lsp/tinymist.lua b/config/nvim/lua/lsp/tinymist.lua index 32ce5ca..f40de0f 100644 --- a/config/nvim/lua/lsp/tinymist.lua +++ b/config/nvim/lua/lsp/tinymist.lua @@ -2,11 +2,11 @@ return { filetypes = { 'typst' }, settings = { formatterMode = 'typstyle', + exportPdf = 'onSave', semanticTokens = 'disable', lint = { enabled = true, when = 'onType', - -- when = 'onSave' }, }, } diff --git a/config/nvim/lua/plugins/lsp.lua b/config/nvim/lua/plugins/lsp.lua index 235b0b9..17baa9d 100644 --- a/config/nvim/lua/plugins/lsp.lua +++ b/config/nvim/lua/plugins/lsp.lua @@ -189,18 +189,4 @@ return { }, event = 'LspAttach', }, - { - 'chomosuke/typst-preview.nvim', - ft = 'typst', - version = '1.*', - opts = { - open_cmd = ('%s %%s --new-window'):format(vim.env.BROWSER), - invert_colors = 'auto', - dependencies_bin = { - tinymist = vim.fn.exepath('tinymist'), - websocat = vim.fn.exepath('websocat'), - }, - }, - keys = { { 't', 'TypstPreviewToggle' } }, - }, } diff --git a/home/modules/editor.nix b/home/modules/editor.nix index c7ee823..55e7bda 100644 --- a/home/modules/editor.nix +++ b/home/modules/editor.nix @@ -40,7 +40,6 @@ in # runtime/tools nodejs - websocat luarocks tree-sitter nixfmt-tree