From cc6feb280659d7595195c168513a52f958cb044d Mon Sep 17 00:00:00 2001 From: doman Date: Wed, 30 Aug 2023 13:54:13 +0200 Subject: [PATCH] autopairs --- .config/nvim/lua/plugins/autopairs.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .config/nvim/lua/plugins/autopairs.lua diff --git a/.config/nvim/lua/plugins/autopairs.lua b/.config/nvim/lua/plugins/autopairs.lua new file mode 100644 index 0000000..af7d460 --- /dev/null +++ b/.config/nvim/lua/plugins/autopairs.lua @@ -0,0 +1,21 @@ +return { + { + "windwp/nvim-autopairs", + event = "InsertEnter", + opts = { + check_ts = true, + ts_config = { java = false }, + fast_wrap = { + map = "", + chars = { "{", "[", "(", '"', "'" }, + pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""), + offset = 0, + end_key = "$", + keys = "qwertyuiopzxcvbnmasdfghjkl", + check_comma = true, + highlight = "PmenuSel", + highlight_grey = "LineNr", + }, + }, + }, +}