From 2ecb8c9fffa8e7a58754b4be9c5a799ff6c8201e Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 29 Oct 2024 08:23:01 +0100 Subject: [PATCH] mzte-nv: update typst-related configuration files --- mzte-nv/conf/ftplugin/typst.fnl | 3 +++ mzte-nv/conf/lua/pluginconf/p-lspconf.fnl | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 mzte-nv/conf/ftplugin/typst.fnl diff --git a/mzte-nv/conf/ftplugin/typst.fnl b/mzte-nv/conf/ftplugin/typst.fnl new file mode 100644 index 0000000..daa41a8 --- /dev/null +++ b/mzte-nv/conf/ftplugin/typst.fnl @@ -0,0 +1,3 @@ +;; Use 2-space indentation for typst +(set vim.o.shiftwidth 2) +(set vim.o.tabstop 2) diff --git a/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl b/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl index 014cece..d949c52 100644 --- a/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-lspconf.fnl @@ -68,7 +68,6 @@ {:single_file_support true :offset_encoding :utf-8 :root_dir (util.root_pattern :.typstroot) - :settings {:tinymist {:settings {:formatterMode :typstyle - :formatterPrintWidth 100}}}}) + :settings {:formatterMode :typstyle :formatterPrintWidth 100}}) (setup :zls)