Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

Undocumented autopairs setting

Open aryzing opened this issue 3 years ago • 7 comments

Was unable to find any docs for setting the autopairs property below in either the autopairs or the TS repos,

https://github.com/LunarVim/Neovim-from-scratch/blob/1d14e44126b153943abc8559e3c2a8ccce9fe931/lua/user/treesitter.lua#L10-L12

What does this setting do, and how did you know it needed to be added?

aryzing avatar Jan 03 '22 21:01 aryzing

It might be treesitter property of different highlighting for different paranthesis,brackets or quotes.

nishu-murmu avatar Jan 05 '22 15:01 nishu-murmu

It's possible I mixed this up with autotag, you can check with the plugin owner to be certain.

ChristianChiarulli avatar Jan 05 '22 22:01 ChristianChiarulli

It might be treesitter property of different highlighting for different paranthesis,brackets or quotes.

That has a completely different treesitter based plugin known as nvim-ts-rainbow. So it definitely can't be that.

dvchoudh avatar Jan 13 '22 07:01 dvchoudh

Somebody asked on the treesitter repo about this, I guess we'll need to wait for somebodies response. I think that windwp/nvim-autopairs needs this enabled if we want to check the pairs/parens/braces using treesitter, but that's just my guess.

sagb-dev avatar Jan 14 '22 22:01 sagb-dev

I can't seem to find any treesitter option you can add in the nvim-autopairs plugin.

dvchoudh avatar Jan 15 '22 07:01 dvchoudh

I was referring to this. But I'm not really sure, it's just my guess.

sagb-dev avatar Jan 15 '22 14:01 sagb-dev

If it were that, the help pages would've mentioned. Which they have not, last time I checked

dvchoudh avatar Jan 16 '22 12:01 dvchoudh