Compare commits
No commits in common. "efe9241d509f5ddcf2a5f14463092097017079e3" and "e41b9980231303f6500d4616edfe836589d7d873" have entirely different histories.
efe9241d50
...
e41b998023
3 changed files with 81 additions and 0 deletions
7
after/lsp/zls.lua
Normal file
7
after/lsp/zls.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
return {
|
||||||
|
settings = {
|
||||||
|
zls = {
|
||||||
|
enable_build_on_save = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
5
lua/conf/plugins/vimtex.lua
Normal file
5
lua/conf/plugins/vimtex.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
return { "lervag/vimtex",
|
||||||
|
setup = function()
|
||||||
|
vim.g.vimtex_view_method = "zathura"
|
||||||
|
end
|
||||||
|
}
|
||||||
69
lua/snippets/tex.lua
Normal file
69
lua/snippets/tex.lua
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
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)
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue