return { 'windwp/nvim-autopairs', event = 'InsertEnter', config = true, -- use opts = {} for passing setup options -- this is equivalent to setup({}) function -- opts = { check_ts = true, ts_config = { lua = { 'string' }, -- it will not add a pair on that treesitter node javascript = { 'template_string' }, java = false, -- don't check treesitter on java }, fast_wrap = { map = '', chars = { '{', '[', '(', '"', "'" }, pattern = [=[[%'%"%>%]%)%}%,]]=], end_key = '$', before_key = 'h', after_key = 'l', cursor_pos_before = true, keys = 'qwertyuiopzxcvbnmasdfghjkl', manual_position = true, highlight = 'Search', highlight_grey = 'Comment', }, }, }