autopairs?

This commit is contained in:
pika 2024-08-18 22:55:09 +02:00
parent 457ae17c15
commit 607c3353ba

View file

@ -10,11 +10,11 @@ return {
-- configure autopairs -- configure autopairs
autopairs.setup({ autopairs.setup({
check_ts = true, -- enable treesitter check_ts = true, -- enable treesitter
ts_config = { ts_config = {
lua = { "string" }, -- don't add pairs in lua string treesitter nodes lua = { "string" }, -- don't add pairs in lua string treesitter nodes
javascript = { "template_string" }, -- don't add pairs in javscript template_string treesitter nodes javascript = { "template_string" }, -- don't add pairs in javascript template_string treesitter nodes
java = false, -- don't check treesitter on java java = false, -- don't check treesitter on java
}, },
}) })
@ -28,4 +28,3 @@ return {
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done()) cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
end, end,
} }