1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-02-23 16:57:59 +00:00
dotfiles/.config/nvim/lua/plugins/autopairs.lua

19 lines
445 B
Lua
Raw Normal View History

2023-04-12 20:09:30 +02:00
require("nvim-autopairs").setup({
2022-10-12 16:02:54 +02:00
check_ts = true,
2022-10-08 12:44:11 +02:00
disable_filetype = { "TelescopePrompt", "neo-tree" },
ts_config = {
lua = { "string", "source" },
},
fast_wrap = {
map = "<M-e>",
chars = { "{", "[", "(", '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""),
2022-10-12 16:02:54 +02:00
offset = 0,
2022-10-08 12:44:11 +02:00
end_key = "$",
keys = "qwertyuiopzxcvbnmasdfghjkl",
check_comma = true,
highlight = "PmenuSel",
highlight_grey = "LineNr",
},
2022-10-01 13:46:18 +02:00
})