From bd8e59227dcb1e084e7b1e340179a668437b9a53 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 12 Dec 2022 15:49:45 +0100 Subject: [PATCH] nvim: add glossary entry snippet --- files/nvim/.config/nvim/snippets/snippets/latex.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/files/nvim/.config/nvim/snippets/snippets/latex.json b/files/nvim/.config/nvim/snippets/snippets/latex.json index 1d81988..a55a7a8 100644 --- a/files/nvim/.config/nvim/snippets/snippets/latex.json +++ b/files/nvim/.config/nvim/snippets/snippets/latex.json @@ -81,7 +81,7 @@ "", "%%% set monospace font and decrease size, to match 80c in minted", "\\usepackage{fontspec}", - "\\setmonofont[Scale=0.85]{SFMono Nerd Font},", + "\\setmonofont[Scale=0.85]{SFMono Nerd Font}", "", "%%% set titlepage", "\\title{ \\\\\\[0.2em] \\large }", @@ -93,7 +93,7 @@ "", "\\begin{document}", "", - "% use with \\gls{nvim}", + "% use with \\gls{nvim}, new entry with snippet nge", "% \\newglossaryentry{nvim}{name=Neovim, description={Bester Editor der Welt}}", "", "% create title page with toc", @@ -322,5 +322,10 @@ "\\end{frame}" ], "description": "Create frame env in a slide" + }, + "glossary-entry": { + "prefix": "nge", + "body": ["\\newglossaryentry{$1}{name= ,description={}, plural={}}"], + "description": "Insert a new glossary entry" } }