-- lua/user/autopairs.lua local status_ok, autopairs = pcall(require, 'nvim-autopairs') if not status_ok then vim.notify("nvim-autopairs not found — run :PackerSync", vim.log.levels.WARN) return end autopairs.setup{ disable_filetype = { "TelescopePrompt", "vim" }, check_ts = true, -- Enable Treesitter integration ts_config = { lua = { "string" }, -- Disable auto-pairs inside Lua strings javascript = { "template_string" }, java = false, -- Disable Treesitter integration for Java }, fast_wrap = { map = '', -- Trigger fast wrap with Alt+e chars = { '{', '[', '(', '"', "'" }, pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''), offset = 0, -- Offset from pattern match end_key = '$', keys = 'qwertyuiopzxcvbnmasdfghjkl', check_comma = true, highlight = 'Search', highlight_grey='Comment' }, }