local tex = require("util.latex")
local snip = {
s(
{ trig = "bbi" },
fmta(
[[\begin{thebibliography}
<>
\end{thebibliography}]],
{
i(0),
}
),
{ condition = tex.in_text, show_condition = tex.in_text }
),
s({ trig = "bib" }, { t("\\bibitem") }, { condition = tex.in_bib }),
s({ trig = "im" }, { t("\\item") }, { condition = tex.in_item }),
}
return snip, autosnip
- init
- readme
- LuaSnip
- ftpugin
- lsp
-
lua
-
└──
core
- └── init
- └── keymaps
- └── lazy-bootstrap
- └── options
-
└──
lazy-plugins
- └── ai
- └── cmp
- └── colorscheme
- └── edit
- └── external
- └── filemanager
- └── format
- └── fun
- └── git
- └── lines
- └── lsp
- └── md
- └── nav
- └── snack
- └── start
- └── tex
- └── treesitter
- └── typst
- └── ui
- └── utils
-
└──
util
- └── latex
-
└──
core
-
plugin
- └── autocmds
- └── commands
- └── fold
- └── highlight
- └── lsp
-
snipmate
-
└──
lua
- └── nvim
- └── markdown
-
└──
tex
- └── abbre
- └── templates
-
└──
lua