From 3ab3819befb551d8ae902d4d3ca010d9151fb885 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 14 Feb 2026 16:53:53 -0500 Subject: [PATCH] no more latex, typst is my new best friend --- lua/conf/plugins/vimtex.lua | 5 --- lua/snippets/tex.lua | 69 ------------------------------------- 2 files changed, 74 deletions(-) delete mode 100644 lua/conf/plugins/vimtex.lua delete mode 100644 lua/snippets/tex.lua diff --git a/lua/conf/plugins/vimtex.lua b/lua/conf/plugins/vimtex.lua deleted file mode 100644 index 660efda..0000000 --- a/lua/conf/plugins/vimtex.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { "lervag/vimtex", - setup = function() - vim.g.vimtex_view_method = "zathura" - end -} diff --git a/lua/snippets/tex.lua b/lua/snippets/tex.lua deleted file mode 100644 index 30999ea..0000000 --- a/lua/snippets/tex.lua +++ /dev/null @@ -1,69 +0,0 @@ -dofile(core.snippets) - -return { - -- document snippet - s("doc", - fmta( - [[ - \documentclass{article} - \title{<>} - \author{<>} - \begin{document} - \maketitle - <> - \end{document} - ]], - { - c(1, { - sn(nil, { f(file_name, {}), i(1) }), - i(1, "my title") - }), - i(2, "my name"), - i(0) - } - ) - ), - - s({ trig = ";begin", snippetType = "autosnippet" }, - fmta( - [[ - \begin{<>} - <> - \end{<>} - ]], - { - i(1), - i(0), - rep(1) - } - ) - ), - - s({ trig = ";href", snippetType = "autosnippet" }, - fmta( - [[\href{<>}{<>}]], - { - i(1, "url"), - i(2, "display name"), - } - ) - ), - - postfix(".b", { - f(function(_, parent) - return [[\textbf{]]..parent.snippet.env.POSTFIX_MATCH.."}" - end) - }), - - postfix(".i", { - f(function(_, parent) - return [[\textit{]]..parent.snippet.env.POSTFIX_MATCH.."}" - end) - }), - - postfix(".ul", { - f(function(_, parent) - return [[\underline{]]..parent.snippet.env.POSTFIX_MATCH.."}" - end) - }) -}