From 44cc264f2553e958dbd32ee44c31b80ab46d508b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 25 Oct 2023 13:31:00 -0400 Subject: [PATCH] neovim: Add typst support Typst documents may be more maintainable long-term than traditional documents in TeX format. --- home/neovim.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home/neovim.nix b/home/neovim.nix index 11bff475..83f6dcec 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -66,9 +66,13 @@ in # lua lua-language-server - # tex + # tex/typst texlive.combined.scheme-full texlab + typst + typstfmt + typst-lsp + typst-live ]; editorconfig = { @@ -236,6 +240,11 @@ in single_file_support = false } lspconfig.astro.setup {} + lspconfig.typst_lsp.setup { + settings = { + exportPdf = "onSave" + } + } vim.keymap.set('n', 'e', vim.diagnostic.open_float) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', ']d', vim.diagnostic.goto_next) @@ -453,6 +462,7 @@ in fcitx-vim vim-astro vim-svelte + typst-vim ]; };