From 3b88644561fcff4ead4eb1eef87d59f94ef19ced Mon Sep 17 00:00:00 2001 From: Vo Quang Chien Date: Mon, 15 Jul 2024 14:06:14 +0700 Subject: [PATCH] feat(typst): add none-ls config --- lua/lazyvim/plugins/extras/lang/typst.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/typst.lua b/lua/lazyvim/plugins/extras/lang/typst.lua index 20b61fe2..361347d1 100644 --- a/lua/lazyvim/plugins/extras/lang/typst.lua +++ b/lua/lazyvim/plugins/extras/lang/typst.lua @@ -39,6 +39,17 @@ return { }, }, + { + "nvimtools/none-ls.nvim", + optional = true, + opts = function(_, opts) + local nls = require("null-ls") + opts.sources = vim.list_extend(opts.sources or {}, { + nls.builtins.formatting.typstyle, + }) + end, + }, + { "chomosuke/typst-preview.nvim", cmd = { "TypstPreview" },