Fork me on GitHub
#vim
<
2023-05-22
>
emilaasa08:05:40

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 🧵 :

emilaasa08:05:13

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

dominicm09:05:52

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

dominicm09:05:12

vim-sexp does do the auto insertion.

emilaasa12:05:37

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

Noah Bogart13:05:35

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

emilaasa13:05:13

Ah, great! Damn you guys are good 🙂

Noah Bogart13:05:35

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