summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after')
-rw-r--r--.config/nvim/after/ftplugin/tex.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/tex.lua b/.config/nvim/after/ftplugin/tex.lua
new file mode 100644
index 0000000..2a79358
--- /dev/null
+++ b/.config/nvim/after/ftplugin/tex.lua
@@ -0,0 +1,24 @@
1require("nvim-surround").buffer_setup({
2 surrounds = {
3 ["B"] = {
4 add = function()
5 return { { '\\textbf{' }, { '}' } }
6 end
7 },
8 ["E"] = {
9 add = function()
10 return { { '\\emph{' }, { '}' } }
11 end
12 },
13 ["T"] = {
14 add = function()
15 return { { '\\texttt{' }, { '}' } }
16 end
17 },
18 ['"'] = {
19 add = function()
20 return { { '\\enquote{' }, { '}' } }
21 end,
22 },
23 }
24})