vim

emilaasa 2023-05-22T08:39:40.637359Z

Is there a way to figure out which plugin/setting I have that does auto insertion of ", so when I write " I end up with "" ? I currently have an undesired behavior where I get nested quotes when I type " inside a string in insert mode. This hasn't been a problem earlier, so it's something that showed up after I migrated to a new config. GIF in 🧵 :

emilaasa 2023-05-22T08:40:16.516069Z

emilaasa 2023-05-22T08:44:13.218369Z

I have vim-sexp and vim-sexp-mappings-for-regular-people

dominicm 2023-05-22T09:39:52.428019Z

:imap will tell you what insert-mode mappings you have, you’ll probably find " in there.

dominicm 2023-05-22T09:40:12.145409Z

vim-sexp does do the auto insertion.

emilaasa 2023-05-22T12:15:37.339559Z

Yeah, thanks for the imap tip! I wonder why their little fix worked before but not post fennel:

2023-05-22T13:43:35.375689Z

it uses the built-in regex-based syntax highlighting to determine when in a string or not, and doesn't use tree-sitter, so if you only rely on tree-sitter highlighting, it won't work

2023-05-22T13:43:47.259289Z

https://github.com/guns/vim-sexp/issues/31

emilaasa 2023-05-22T13:50:13.484609Z

Ah, great! Damn you guys are good 🙂

2023-05-22T13:50:35.163759Z

haha we've all suffered in this space for a long time