-
Notifications
You must be signed in to change notification settings - Fork 7
/
autoclose.lua
38 lines (38 loc) · 841 Bytes
/
autoclose.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
return {
-- {
-- 'windwp/nvim-autopairs',
-- event = "InsertEnter",
-- config = true
-- },
{
"m4xshen/autoclose.nvim",
opts = {
options = {
disabled_filetypes = { "text" },
disable_when_touch = true,
pair_spaces = true,
},
keys = {
["'"] = {
escape = true,
close = true,
pair = "''",
disabled_filetypes = { "markdown" },
},
["`"] = { escape = false, close = true, pair = "``" },
},
},
},
"windwp/nvim-ts-autotag",
{
"kylechui/nvim-surround",
version = "*",
event = "VeryLazy",
opts = {
keymaps = {
normal = "gs",
normal_cur = "gss",
},
},
},
}