summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/ftplugin/tex.lua
blob: 2a79358928d14ef5687cd3c5ca66389facadae26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require("nvim-surround").buffer_setup({
    surrounds = {
        ["B"] = {
            add = function()
                return { { '\\textbf{' }, { '}' } }
            end
        },
        ["E"] = {
            add = function()
                return { { '\\emph{' }, { '}' } }
            end
        },
        ["T"] = {
            add = function()
                return { { '\\texttt{' }, { '}' } }
            end
        },
        ['"'] = {
            add = function()
                return { { '\\enquote{' }, { '}' } }
            end,
        },
    }
})